-
Notifications
You must be signed in to change notification settings - Fork 27
rulesets/nixpkgs: add merge queue for lints on master #149
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "name": "require-merge-queue", | ||
| "target": "branch", | ||
| "source_type": "Repository", | ||
| "source": "NixOS/nixpkgs", | ||
| "enforcement": "active", | ||
| "conditions": { | ||
| "ref_name": { | ||
| "exclude": [], | ||
| "include": [ | ||
| "~DEFAULT_BRANCH" | ||
| ] | ||
| } | ||
| }, | ||
| "rules": [ | ||
| { | ||
| "type": "merge_queue", | ||
| "parameters": { | ||
| "merge_method": "MERGE", | ||
| "max_entries_to_build": 5, | ||
| "min_entries_to_merge": 1, | ||
| "max_entries_to_merge": 5, | ||
| "min_entries_to_merge_wait_minutes": 5, | ||
| "grouping_strategy": "ALLGREEN", | ||
| "check_response_timeout_minutes": 60 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe check if these numbers make sense for Nixpkgs, or try them out and adjust as necessary (can do it more ad-hoc, commit later)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, no experience, so left the default here. We should certainly look into this once we have a bit more experience. |
||
| } | ||
| } | ||
| ], | ||
| "bypass_actors": [ | ||
| { | ||
| "actor_id": 203427, | ||
wolfgangwalther marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "actor_type": "Team", | ||
| "bypass_mode": "pull_request" | ||
| } | ||
| ] | ||
| } | ||
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.
Just for the record: we will never* be able to add wildcard branches to the include/exclude lists for this ruleset, as GitHub currently doesn't support requiring Merge Queues on a ruleset with wildcard patterns.
All listed branches must either be the default branch, or a non-wildcard pattern.
This means we can't add
refs/heads/release-*and would instead have to add (e.g.)refs/heads/release-25.05.*At least, until GitHub adds support.
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.
Yeah, that might not be too bad, though. In the current release process, the release team needs to push directly to the release branch anyway, so the merge queue would require them to do that differently. There could be a step in the release process to have the merge queue enabled for the new branch, explicitly.