Skip to content
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

Support renaming the current default branch to the new name #76

Closed
eclipse-csi-bot opened this issue Jul 14, 2023 · 2 comments
Closed

Comments

@eclipse-csi-bot
Copy link
Contributor

In GitLab by @netomi on Jul 14, 2023, 23:47

Currently, when updating the default branch setting of a repo, the new branch must exist for the operation to succeed.
Doing it via the Web UI will actually rename the current default branch to the new name.

We should add support to that also via otterdog, utilizing the api for renaming a branch: https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#rename-a-branch

We could add an additional model only field to enable renaming otherwise, just the default branch setting is updating without renaming.

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Oct 21, 2023, 17:12

mentioned in commit d5d1845

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Oct 21, 2023, 17:12

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant