Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rulesets/nixpkgs/no-creation.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"refs/heads/revert-*",
"refs/heads/wip-*/**/*",
"refs/heads/revert-*/**/*",
"refs/heads/dependabot/**/*"
"refs/heads/dependabot/**/*",
"refs/heads/gh-readonly-queue/**/*"
],
"include": [
"~ALL"
Expand Down
36 changes: 36 additions & 0 deletions rulesets/nixpkgs/require-merge-queue.json
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"

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.

Copy link
Contributor Author

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.

]
}
},
"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
Copy link
Member

Choose a reason for hiding this comment

The 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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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,
"actor_type": "Team",
"bypass_mode": "pull_request"
}
]
}