Enable merge queue on a branch protection rule or ruleset via the repository Settings UI or API by setting 'merge_queue' as a required rule in the ruleset
Configure the merge queue parameters: minimum and maximum group size, merge method (merge, squash, or rebase), and wait time before merging a group
Add required status checks that must pass for the merge group; CI workflows should trigger on 'merge_group' event in addition to 'pull_request' to run checks in the queue context
In GitHub Actions workflows, add 'on: merge_group:' as a trigger alongside 'on: pull_request:' so the same checks run for queued groups
Monitor queue status via GET '/repos/{owner}/{repo}/merges' or watch the Pull Requests tab; remove a PR from the queue by closing and reopening if it gets stuck
Known gotchas
Status checks must be explicitly configured to run on the 'merge_group' event; checks that only run on 'pull_request' will not satisfy merge queue requirements and will block all merges
Merge queue creates temporary refs (refs/heads/gh-readonly-queue/*) for combined groups; workflows must not assume branch name patterns or they will silently skip
If a PR in a group fails, all PRs behind it in the queue are ejected and must be re-queued; design CI to be fast to minimize queue churn
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp