You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently repository is fetched by concatenating "owner" and "name" from the path of the API and then searching for this as the name of the repository.
This means that if the "full name" of the repo does not follow a convention of concatenating "owner" + "name" then repository cannot be found. Effectively the "fullname" property could as well be removed. I.e., the links are rendered from "owner" and "name" which effectively is the semantic key of repo.
Clear and concise description of the problem
Currently repository is fetched by concatenating "owner" and "name" from the path of the API and then searching for this as the name of the repository.
This means that if the "full name" of the repo does not follow a convention of concatenating "owner" + "name" then repository cannot be found. Effectively the "fullname" property could as well be removed. I.e., the links are rendered from "owner" and "name" which effectively is the semantic key of repo.
https://github.com/neticdk/woodpecker/blob/main/server/router/middleware/session/repo.go#L60
Suggested solution
Store should be extended with a function to fetch repository by owner+name instead of the concatenated string.
https://github.com/neticdk/woodpecker/blob/main/server/store/store.go#L54
Alternative
No response
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: