-
Notifications
You must be signed in to change notification settings - Fork 16
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
Automate protection/unprotection of master
during release
#257
Comments
+1 on this. It will also help us to automate |
I'm -1 to protect/unprotect. I'd rather programmatically create a PR, approve it, and merge it. This will keep a better audit trail and easier to parse diff in github. I'm going to attempt to tackle this in st2cicd and see what the limitations are. If successful someone can copy the method over for release mgmt. |
Agreed, creation of a PR would be a better way to go, just a bit more work |
We just have found a possible easy solution for this issue. For branch protection, Github has an option to enforce status checks for Administrators. ... the only problem is that everyone is administrator. At least release automation can check/uncheck only one single setting, instead of unprotecting entire branch configuration. It's 1 simple API (boolean) call: |
We should look into unprotecting and protecting
master
programmatically. Several workflows inst2cd
push directly tomaster
in a few repos - and currently we have to unprotect (and more importantly remember to re-protect) manually.The text was updated successfully, but these errors were encountered: