From b0332b516852d06eaac7949160c4e32487ebe755 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Date: Tue, 11 Mar 2025 13:57:57 +0000 Subject: [PATCH] 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). --- .github/workflows/go.yml | 2 ++ .github/workflows/libevm-delta.yml | 2 ++ .github/workflows/lint.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 47e20c549f..cc1c539429 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,6 +5,8 @@ on: branches: [main, "release/**"] pull_request: branches: [main, "release/**"] + merge_group: + types: [checks_requested] workflow_dispatch: concurrency: diff --git a/.github/workflows/libevm-delta.yml b/.github/workflows/libevm-delta.yml index 950ea74273..9f7cac1da4 100644 --- a/.github/workflows/libevm-delta.yml +++ b/.github/workflows/libevm-delta.yml @@ -5,6 +5,8 @@ on: branches: [main, "release/**"] pull_request: branches: [main, "release/**"] + merge_group: + types: [checks_requested] workflow_dispatch: concurrency: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67428073c8..e3c7d2ee90 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,6 +5,8 @@ on: branches: [main, "release/**"] pull_request: branches: [main, "release/**"] + merge_group: + types: [checks_requested] workflow_dispatch: permissions: