Required workflows break default branch renaming #53252
-
Select Topic AreaBug BodyWe just bumped into an interesting issue where having a required workflow broke default branch renaming. Setup:
What we tried to do:
Expected outcome:
Actual outcome:
We tried a few things:
At this point, we realized that it might be related to required workflows; disabling it for the repo let us rename the default branch. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
Having a similar issue, except with creating a fresh repository within an organization with required workflows set to all repos. We cannot seem to create the main branch and when you try to create a new branch to merge into main, it just makes that branch the default automatically, and you cannot rename it to main. Even trying to add a README or .gitignore at creation time(by checking the boxes) fails. Edit: Contacted Github Enterprise Support and they confirmed this is a bug and is being worked on. |
Beta Was this translation helpful? Give feedback.
-
|
I would also like to post an issue I am facing with required workflows from the organization level. Essentially, when I use GitHub Classroom to create a repository for an assignment with a required workflow, the repository is blank when it should create a pull request that is used for students and teachers. The entire discussion can be found here: https://github.com/community/Global-Campus-Teachers/discussions/222 |
Beta Was this translation helpful? Give feedback.
-
|
We bumped into the same problem. We have an organization-required workflow:
and we are unable to create the main branch for a newly created repo. We have tried renaming, UI creation, change of a default branch, ... and nothing helped. The workaround to be able to continue is to create a branch with a different name (AKA old master branch) and switch the default branch to that one. CC @mnmkng |
Beta Was this translation helpful? Give feedback.
-
|
It looks like this has been fixed, so I'll mark as resolved. |
Beta Was this translation helpful? Give feedback.
It looks like this has been fixed, so I'll mark as resolved.