Interview Prep/GitHub Actions/Triggers & Events

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events