-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you create a repo called action, it cannot be update #18037
Comments
Yup this is because it posts to it are being conflicted with: Lines 487 to 489 in 2cd1479
Two options;
I think if we can move the above endpoint elsewhere and avoid a reserved name that would be useful. However we need to check the api.go router file to see if there are other conflicted routes that need to be addressed too. |
How about change the router to |
somewhat annoyingly |
The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix go-gitea#18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
) The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix #18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
…gitea#18045) Backport go-gitea#18045 The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix go-gitea#18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
) (#18046) Backport #18045 The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix #18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
…gitea#18045) The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix go-gitea#18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
Gitea Version
1.16.0+dev-717-g25677cdc5
Git Version
No response
Operating System
No response
How are you running Gitea?
https://try.gitea.io
Database
No response
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
I tried to fix the problem, but found that I could only fix it by disabling the repository that the user created called action.
you can see the demo https://try.gitea.io/Akkuman/action
it cannot be delete or update
Screenshots
No response
The text was updated successfully, but these errors were encountered: