ci: trigger CI on merge_group events#204
Open
pgherveou wants to merge 1 commit into
Open
Conversation
The branch ruleset requires the "CI Status" check and enables a merge queue. The queue builds a temporary merge commit and fires a merge_group event, but ci.yml did not listen for it, so CI never ran against the queue's commit and the required check stayed pending. Add the merge_group trigger so the queue can resolve its required check.
filvecchiato
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The branch ruleset on
mainrequires the "CI Status" check and enables a merge queue. When a PR is enqueued, GitHub builds a temporary merge commit on agh-readonly-queue/main/...branch and fires amerge_groupevent, expecting CI to run against it and report "CI Status".ci.ymlonly triggered onpull_request,pushto main, andworkflow_dispatch— nevermerge_group. So nothing ran against the queue's temp commit, its combined status stayedpending, and any enqueued PR sat inAWAITING_CHECKSuntil the queue's 60-minute timeout, then dequeued. The merge queue could never merge anything.Fix
Add the
merge_groupevent toci.yml's triggers so the full CI suite (and therefore the "CI Status" gate) runs against the queue's merge commit.The
concurrencygroup keys ongithub.ref, which is distinct per merge-group branch, so queue runs don't cancel PR runs. The disablede2ejob reportsskipped, which theci-statusgate already accepts.Note
This PR itself must reach
mainbefore the queue works. Since the queue is currently non-functional, a maintainer will need to merge it directly (bypass) or temporarily disable the merge-queue rule.