-
Notifications
You must be signed in to change notification settings - Fork 178
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 rules don't apply for non-existent branches #136
Comments
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
I am also experiencing a similar issue, I have a settings.yml file that defines both
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Still relevant |
Any idea why the web interface of GitHub is able to create rules for non existent branches, but Probot does not? |
unfortunately, there are many areas where probot/settings is limited in how well it can match the capabilities of the web ui because of limitations of the api. i haven't had a chance to fully investigate this case, but this comment in a related issue, explains the problem as well as i've had a chance to understand it so far. if you have a chance to investigate further before i do, i'd be happy to discuss any options you find. assuming it is still blocked by those limitations, the best option i can suggest is to reach out to github support and request that the functionality be added to the api. if you get a useful response, please update this issue with details. |
Crossposting this for completeness, I don't believe this is an API constraint, I tested this now and the API supports added branches that do not exist.
This is the same for ##227 |
Given the following protection rules, a new rule will not be created targeting
?.?
branches if there's no branch matching that pattern. This also happened when I tried creating a rule for adevelop
branch when there was nodevelop
branch in existence. Whereas with GitHub, you can create rules without having those branches existing.The text was updated successfully, but these errors were encountered: