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 tool to manage branch protection rules across many repositories #66

Open
soenkeliebau opened this issue Apr 17, 2024 · 0 comments
Open

Comments

@soenkeliebau
Copy link
Member

We currently have a branch protection rule in place that protects "release-*" branches in our repositories.

This has drawbacks:

  • it will cause release scripts to fail because the newly created release branches cannot be pushed to by the script
  • prs on these branches cannot use the merge queue (not possible with wildcards in the branch name)

It might be worth switching to individual protection rules for every release, but that would make them hard to change/administer.

The github api allows managing these rules: https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28

We should look into writing a simple python script that takes a list of repos and release names and updates these protection rules.

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

No branches or pull requests

1 participant