-
Notifications
You must be signed in to change notification settings - Fork 27
rulesets/nixpkgs: introduce required status checks #134
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
rulesets/nixpkgs: introduce required status checks #134
Conversation
This enables the "Required Status Checks" feature for Nixpkgs' development branches. At this stage, all nixpkgs committers can bypass the checks. Related: NixOS#130
MattSturgeon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Diff LGTM
- Committers team id verified via rest api
This directory contains JSON exports of branch protection rulesets for repositories in the NixOS org.
They are not managed automatically, but can easily be imported by org owners.
To propose changes to branch protection rules, you can open a Pull Request.
For a second, I thought there was some magic github org-repo that'd could declaratively manage repo settings...
infinisil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I can't actually import this ruleset directly (gives an error), I can manually create it and then re-export it. Can I get another approval from an @NixOS/org owner for this? :)
@wolfgangwalther Thanks a lot for all this work, very appreciated!
Interesting, what's wrong with it, I wonder? I guess we will see after export ;) |
After applying parent commit
3ef1003 to
78a5863
Compare
|
Applied! |
|
Btw the problem with the importing was just that the JSON list had an extra |
|
What prevents us from enabling merge queues now? |
|
Yes, auto-merge would make reviewing and merging async. That would be super helpful. And you can cancel until it is merged. Actually, I care more for auto-merge than merge-queues. Merge queues would be an experiment, auto-merges should be fairly safe. |
|
re merge queues: before we can enable these, we need to split the ruleset etc. - we can't require them for the staging branches right now, because all our periodic merges need to bypass that etc. re auto-merge: that's surely something we can try. we just need to consider that it won't wait for ofborg - it will only wait for eval and the other basic checks. |
|
This regressed our periodic merge CI. https://github.com/NixOS/nixpkgs/actions/runs/16222366363/job/45805853015 |
|
|
|
Staging is now not included anymore: #139 |
|
As mentioned in #139, I think we should keep this on staging, but allow the nixpkgs-ci app to bypass this ruleset as well. We actually discussed this issue already in #130 (comment) - but I entirely missed that we need nixpkgs-ci to be a bypasser as well. |


This enables the "Required Status Checks" feature for Nixpkgs' development branches.
At this stage, all nixpkgs committers can bypass the checks. See discussion in #130.
Notes:
python-updatesandr-updates, which both have "no-delete" rules, but not "no-force-push". Status of those branches is discussed in nixpkgs branch protection rules: prevent creation of new branches! #118.gh api /orgs/NixOS/teams/nixpkgs-committers.cc @MattSturgeon