-
Notifications
You must be signed in to change notification settings - Fork 2
ci(workflows): add merge_group trigger to unblock GitHub Merge Queue #1008
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
5af278d
fdddc8d
de8bea2
ee72443
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 |
|---|---|---|
|
|
@@ -38,6 +38,17 @@ | |
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "merge_queue", | ||
| "parameters": { | ||
| "check_response_timeout_minutes": 60, | ||
| "grouping_strategy": "ALLGREEN", | ||
| "max_entries_to_build": 5, | ||
| "max_entries_to_merge": 5, | ||
| "min_entries_to_merge": 1, | ||
| "min_entries_to_merge_wait_minutes": 0 | ||
| } | ||
| } | ||
|
Comment on lines
+42
to
52
Contributor
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. The {
"type": "merge_queue",
"parameters": {
"check_response_timeout_minutes": 60,
"grouping_strategy": "ALLGREEN",
"max_entries_to_build": 5,
"max_entries_to_merge": 5,
"min_entries_to_merge": 1,
"min_entries_to_merge_wait_minutes": 0
}
} |
||
| ], | ||
| "bypass_actors": [] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,17 @@ | |
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "merge_queue", | ||
| "parameters": { | ||
| "check_response_timeout_minutes": 60, | ||
| "grouping_strategy": "ALLGREEN", | ||
| "max_entries_to_build": 5, | ||
| "max_entries_to_merge": 5, | ||
| "min_entries_to_merge": 1, | ||
| "min_entries_to_merge_wait_minutes": 0 | ||
| } | ||
| } | ||
|
Comment on lines
+39
to
49
Contributor
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. The {
"type": "merge_queue",
"parameters": {
"check_response_timeout_minutes": 60,
"grouping_strategy": "ALLGREEN",
"max_entries_to_build": 5,
"max_entries_to_merge": 5,
"min_entries_to_merge": 1,
"min_entries_to_merge_wait_minutes": 0
}
} |
||
| ], | ||
| "bypass_actors": [] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ on: | |
| branches: [develop] | ||
| push: | ||
| branches: [develop] | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
@@ -53,13 +55,14 @@ jobs: | |
| node-version: "22.22.1" | ||
| - run: npm ci | ||
| - name: Validate branch name | ||
| if: github.event_name != 'merge_group' | ||
| env: | ||
| BRANCH_NAME: ${{ github.event.pull_request.head.ref || github.ref_name }} | ||
| BRANCH_NAME: ${{ github.event.merge_group.head_ref || github.event.pull_request.head.ref || github.ref_name }} | ||
|
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.
When this job runs for Useful? React with 👍 / 👎. |
||
| run: npm run validate:branch-name | ||
|
Comment on lines
57
to
61
|
||
| - run: npm run validate:json | ||
| - run: npm run validate:issue-fields | ||
| - run: npm run validate:retired-doc-links | ||
| - run: npm run validate:frontmatter:changed -- --base ${{ github.event.pull_request.base.sha || github.event.before }} --head ${{ github.event.pull_request.head.sha || github.sha }} | ||
| - run: npm run validate:frontmatter:changed -- --base ${{ github.event.merge_group.base_sha || github.event.pull_request.base.sha || github.event.before }} --head ${{ github.event.merge_group.head_sha || github.event.pull_request.head.sha || github.sha }} | ||
|
|
||
| # Composite status check: ensures all checks pass before merge | ||
| all-checks: | ||
|
|
||
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.
When these ruleset JSON files are applied through the GitHub repository rulesets API, this new
merge_queuerule is invalid becauseparameters.merge_methodis documented as required (MERGE,SQUASH, orREBASE). The same block was added tomain.ruleset.json, so both protected branches may reject the ruleset update rather than enabling the queue. Add the chosen method to eachmerge_queueparameters object.Useful? React with 👍 / 👎.