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

Add code to handle both rename and reassign of default branch #632

Merged
merged 3 commits into from
May 22, 2024

Conversation

decyjphr
Copy link
Collaborator

Handle both rename and reassignment of default branch. If it is reassigned and repository settings has a default-branch then safe-settings will reset it back.

If it is a rename of the current default branch, safe-settings will rename it back.

Any new refs that are created by the user will still remain as they would be pointing to the current default branch and cannot be deleted.

@decyjphr decyjphr merged commit f1193c2 into main-enterprise May 22, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant