Skip to content

Commit b0332b5

Browse files
authored
chore(ci): add merge_group trigger to required workflows (#160)
## Why this should be merged Allows ruleset-required workflows to be triggered by a merge queue, not just the PR for the merge. Although `main` isn't a particularly "busy" branch, a merge queue will ensure that CI passes on the exact version of code that is about to be merged; i.e. (from the [docs]): > The merge queue provides the same benefits as the **Require branches to be up to date before merging** branch protection, but does not require a pull request author to update their pull request branch and wait for status checks to finish before trying to merge. [docs]: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#about-merge-queues ## How this works Adds `merge_group` workflow trigger with [recommended type](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#merge_group). ## How this was tested N/A (worst-case it has to be reverted and another PR is temporarily blocked).
1 parent 4c6e50e commit b0332b5

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main, "release/**"]
66
pull_request:
77
branches: [main, "release/**"]
8+
merge_group:
9+
types: [checks_requested]
810
workflow_dispatch:
911

1012
concurrency:

.github/workflows/libevm-delta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main, "release/**"]
66
pull_request:
77
branches: [main, "release/**"]
8+
merge_group:
9+
types: [checks_requested]
810
workflow_dispatch:
911

1012
concurrency:

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main, "release/**"]
66
pull_request:
77
branches: [main, "release/**"]
8+
merge_group:
9+
types: [checks_requested]
810
workflow_dispatch:
911

1012
permissions:

0 commit comments

Comments
 (0)