-
Notifications
You must be signed in to change notification settings - Fork 179
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
Branch protection not applying #923
Comments
were you be able to figure this out? |
same here, regardless of the rules, or just plain C/P of config from the docs also doesn't trigger it. |
We're migrating off this tool because of this issue and the lack of action on this issue. Github Rulesets will be our replacement. |
I kinda figured why it didn't work, so leaving a comment in case it can help anyone. If branch protection rules don't apply, it means something is set up wrong - might be the tiniest mistake.
It kinda makes sense, since it works the same way when you configure settings manually. Other things:
The default / required values could be found in the official docs: Also sometimes it took a little more time for rules to apply. I usually gave it a minute or two before checking if it worked - just in case. I wanted to use this tool to setup settings for numerous new repos we have. But due to these limitations, it doesn't work for me. We probably might use it for setting up labels list, and use Rulesets for settings. So far Rulesets worked pretty decent. Anyway, I'm thankful to the author for the labels part and for making me think in this direction in general 🙂 without it, I'd probably didn't find out about Rulesets yet. |
Problem Description
When creating a new repository with a .github/settings.yml, branch protection is not being applied. Interestingly, repository and teams settings are working, but branches doesn't seem to. I copied the documentation for branches from this repository to make sure I wasn't running into a syntax issue, but no branch settings were applied. I uninstalled and reinstalled the app to make sure that wasn't the issue as well.
Context
Are you using the hosted instance of repository-settings/app or running your own?
I am using the app
The text was updated successfully, but these errors were encountered: