There are two kinds of branch protection configuration we can use:
- The classic branch protection under "Branches" in the menu
- The new rulesets under "Rules / Rulesets"
Currently, nixpkgs and probably most repos in the org, are using the classic branch protection rules. However, the new rulesets have multiple advantages:
We currently have 56 non-archived repos in the org. I briefly went through a random subset: A lot of repos don't have any branch protection (basic branch protection to prevent force pushes for the main branch should probably be added in most of them?) and I assume that many others only have very basic rules. My suggestion on how to approach this:
- Define a very simple, sensible default, for example (target: default branch, restrict deletion, block force pushes) and import this to all repos without protection.
- Import the same to those repos with matching classic rules right now.
- Deal with the rest manually.
I'm especially interested in the branch protection rules for nixpkgs, of course. As a starter, I could prepare a JSON export of the current configuration... iff an org owner / nixpkgs admin could provide screenshots of the current classic configuration...
Once we got this, I could then make much more specific suggestions for #116 and #118 (#119 is already very specific).
There are two kinds of branch protection configuration we can use:
Currently, nixpkgs and probably most repos in the org, are using the classic branch protection rules. However, the new rulesets have multiple advantages:
We currently have 56 non-archived repos in the org. I briefly went through a random subset: A lot of repos don't have any branch protection (basic branch protection to prevent force pushes for the main branch should probably be added in most of them?) and I assume that many others only have very basic rules. My suggestion on how to approach this:
I'm especially interested in the branch protection rules for
nixpkgs, of course. As a starter, I could prepare a JSON export of the current configuration... iff an org owner / nixpkgs admin could provide screenshots of the current classic configuration...Once we got this, I could then make much more specific suggestions for #116 and #118 (#119 is already very specific).