From 33052fa101f68db720beed4fbbf4105cafbc51ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20Andr=C3=A9?= <92062874+matheusandre1@users.noreply.github.com> Date: Mon, 2 Nov 2026 11:27:34 -0300 Subject: [PATCH] ci: run required checks on merge queue entries (#7064) Add a merge_group trigger to ci, checkstyle, docs-actions and partition-literals so a merge queue can gate main on them. Refs #5085 --- .github/workflows/checkstyle.yml | 4 ++++ .github/workflows/ci.yml | 4 ++++ .github/workflows/docs-actions.yml | 4 ++++ .github/workflows/partition-literals.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index 7fc30706ca..456e30c692 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -20,6 +20,10 @@ on: - 'tools/checkstyle/**' - 'pom.xml' - '.github/workflows/checkstyle.yml' + # Runs each merge queue entry against main plus the PRs queued ahead of it. paths does not + # apply to merge_group, so a queued PR is always checked. + merge_group: + types: [checks_requested] permissions: contents: read diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d6d106960..34ff14c093 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,10 @@ on: - 'pom.xml' - '.github/ci/**' - '.github/workflows/ci.yml' + # Runs each merge queue entry against main plus the PRs queued ahead of it. paths does not + # apply to merge_group, so a queued PR is always checked. + merge_group: + types: [checks_requested] permissions: contents: read diff --git a/.github/workflows/docs-actions.yml b/.github/workflows/docs-actions.yml index 44febaa258..313c36980c 100644 --- a/.github/workflows/docs-actions.yml +++ b/.github/workflows/docs-actions.yml @@ -29,6 +29,10 @@ on: - 'tools/java_sources.py' - 'Makefile' - '.github/workflows/docs-actions.yml' + # Runs each merge queue entry against main plus the PRs queued ahead of it. paths does not + # apply to merge_group, so a queued PR is always checked. + merge_group: + types: [checks_requested] permissions: contents: read diff --git a/.github/workflows/partition-literals.yml b/.github/workflows/partition-literals.yml index 820423f1f2..d57ce035d9 100644 --- a/.github/workflows/partition-literals.yml +++ b/.github/workflows/partition-literals.yml @@ -46,6 +46,10 @@ on: - 'src/main/resources/iam/managed-policy-versions.json' - 'Makefile' - '.github/workflows/partition-literals.yml' + # Runs each merge queue entry against main plus the PRs queued ahead of it. paths does not + # apply to merge_group, so a queued PR is always checked. + merge_group: + types: [checks_requested] permissions: contents: read