Interview Prep/Git & GitHub/Branching strategies, pull requests and code review

What does a merge queue do?

IntermediateConceptBranching strategies, pull requests and code review
Answer

GitHub merge queue builds a temporary branch containing the base plus queued PRs in order and runs required checks on that combination before merging. It prevents semantic conflicts and broken main when many PRs pass CI individually but fail together. Workflows must listen to the merge_group event.

on:
  pull_request:
  merge_group:
All Git & GitHub questions Roadmap: Git & GitHub

More on Branching strategies, pull requests and code review