What is the `merge_group` event and why do required-check workflows need it?
IntermediateConceptTriggers & Events
Answer
With a merge queue enabled, GitHub creates temporary branches (gh-readonly-queue/main/pr-123-...) combining queued PRs and fires merge_group. Required checks must report on those commits, otherwise the queue waits forever.
on:
pull_request:
merge_group:
types: [checks_requested]
The check names in merge_group runs must match the required check names.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner