ci: subscribe CI to merge_group events - #582
Conversation
A merge queue runs required checks against a temporary `gh-readonly-queue/*` branch and reports a workflow as passing only if that workflow subscribes to the `merge_group` event. Lint and Test are required checks, so without this trigger the queue would sit waiting on checks that never start. merge_group runs carry no `head_ref`, so the concurrency group falls back to the unique `run_id` and queue runs are never cancelled by a sibling run.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
🤖 Kimi Code ReviewThis is a CI configuration change only ( Line 11: Addition of Lines 18-20: The concurrency comment accurately describes the fallback behavior. The expression Security consideration: The merge_group trigger runs in the context of the target branch (typically Verdict: LGTM. Standard GitHub Actions boilerplate for merge queue enablement. Automated review by Kimi (Moonshot AI) · kimi-k2.5 · custom prompt |
🤖 Claude Code ReviewNo Review:
|
🤖 Codex Code Review
No correctness, security, memory-safety, or consensus-layer findings beyond that. The Testing gap: I reviewed the diff and workflow file only; I did not execute the GitHub Actions workflow locally. Automated review by OpenAI Codex · gpt-5.4 · custom prompt |
Co-authored-by: Tomás Grüner <47506558+MegaRedHand@users.noreply.github.com>
Motivation
GitHub's merge queue runs required checks against a temporary
gh-readonly-queue/*branch, and it only reports a workflow as passing if that workflow subscribes to themerge_groupevent (docs).LintandTestlive inCI, which only listened topush,pull_requestandworkflow_dispatch. If those are set as required checks, the queue would sit waiting on checks that never start.Description
merge_group:trigger to.github/workflows/ci.yml.concurrencycomment thatmerge_groupruns carry nohead_ref, so the group falls back to the uniquerun_idand queue runs are never cancelled by a sibling run.Only
CIis changed; the other workflows are not required checks for merging.