-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
API endpoint to configure default branch and protected branches is missing #2922
Comments
I am also looking for such API especially since 1.4.1 set random default branch on |
Looks like GitHub supports it at least since 2012: https://developer.github.com/changes/2012-10-24-set-default-branch/ It's done via |
Currently you cannot update repository at all. |
Getting the DefaultBranch is support. |
any updates on this? Is this already supported in Gitea 1.5.x and above? |
@sankethpb nobody are working on this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
If wildcard protected branches (#2529) get implemented it is necessary to consider how this affect the API. I would suggest two API endpoints:
|
Description
Gitea allows to configure the default branch and protected branches via GITEA_URL/org/repo/settings/branches but I could not find an API alternative in the local Swagger documentation.
The text was updated successfully, but these errors were encountered: