Can not create a Branch protection rule #44517
Replies: 14 comments 4 replies
-
Weird, I am here because I am having the exact same issue trying to create a Branch Protection Rule. No errors, no message, just depresses the button and no further response. |
Beta Was this translation helpful? Give feedback.
-
yup, same problem here |
Beta Was this translation helpful? Give feedback.
-
Please note in the repo https://github.com/xertai/sdac, my The XertAI is a paid-seat organization. I am now unable to create a new branch protection rule for main. I have tried every option on and off, no joy. I have then deleted any and nearly all limitations on the repository - making the org and repo wide open, also no joy... Feels like a recent defect introduction? Thank you. |
Beta Was this translation helpful? Give feedback.
-
I would like to add, this problem applies to all repos within the https://github.com/xertai org. Specifically, https://github.com/xertai/community. |
Beta Was this translation helpful? Give feedback.
-
I would encourage others suffering from this problem to create a github ticket and link this public issue. |
Beta Was this translation helpful? Give feedback.
-
Update: I cleared
and the problem resolved |
Beta Was this translation helpful? Give feedback.
-
I would add that I am able to create a rule... but only if no restrictions are selected - pretty pointless rules therefore. |
Beta Was this translation helpful? Give feedback.
-
As a workaround, apparently emptying the cache and hard reloading resolves the issue. In Google Chrome, you can do shift+command+R (Ctrl and press F5 on windows) to “hard” reload, which should force the browser to reload cached resources. If you have dev tools open, you can also right-click on the refresh button, and it’ll have a button to “Empty cache and hard reload.” Also, you can use the REST API to create a branch protection rule. |
Beta Was this translation helpful? Give feedback.
-
I found a workaroud |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem :( |
Beta Was this translation helpful? Give feedback.
-
same issue for me, on several repos |
Beta Was this translation helpful? Give feedback.
-
I also filed a bug report with GitHub. Turns out there was a defect that they have since fixed. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I am trying to enforce pull requests and want to create a Branch protection rule to prevent pushing to the main branch.
For a repository, I got the Settings -> Branches. Click :Add branch protection rule" Enter main for the Branch name pattern (that is the main default branch). Check "Require a pull request before merging"
Pressing the "Create" button at the bottom does nothing. No error, nothing.
I have tried this with both Free public and and private Teams repositories.
Beta Was this translation helpful? Give feedback.
All reactions