mergify-merge-queue
Skill69 starsChanged 2 months agoMITView on GitHub
Use Mergify merge queue to monitor, inspect, pause, and manage the merge queue. ALWAYS use this skill when checking queue status, investigating PR merge state, pausing/unpausing the queue, or debugging merge failures. Triggers on merge queue, queue status, queue pause, queue show, pause, unpause, frozen, bisecting, batch, CI checks.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/cursor-cloud-agent-url.mdcCursor rule
- .cursor/rules/cursor-grok-latest.mdcCursor rule
- .cursor/rules/flatbread-pmf-workflow.mdcCursor rule
- .cursor/rules/flatbread-schema-migration.mdcCursor rule
- .cursor/rules/orwell-prose.mdcCursor rule
- .cursor/rules/post-edit-lint-fix.mdcCursor rule
- .cursor/rules/typescript-rules.mdcCursor rule
- agent-browserSkill
- effort-modelingSkill
- grill-with-effortsSkill
- mergify-ciSkill
- mergify-configSkill
- mergify-merge-protectionsSkill
- mergify-stackSkill
- proofSkill
- flatbread-major-migrationSkill
- orchestrator-executorSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Use mergify queue status to see the current state of the merge queue:
- Very specific: line 33
Use --json when you need to parse the output programmatically.
- Very specific: line 37
Use mergify queue show <PR_NUMBER> to check why a PR is stuck or how it's progressing:
- Very specific: line 43
Use -v (verbose) for the full checks table and conditions tree
- Very specific: line 71
Use --yes-i-am-sure to skip the confirmation prompt in scripts
- Very specific: line 77
Check that the PR's merge conditions are met: mergify queue show <PR_NUMBER> -v
- Distinctive: line 78
Look at the conditions section for unmet requirements
- Very specific: line 82
Check CI state: mergify queue show <PR_NUMBER>
- Very specific: line 83
If checks are failing, inspect the failing checks with -v
- Very specific: line 84
If the queue is paused, check who paused it: mergify queue status
- Very specific: line 88
Check for failing batches that trigger bisection: mergify queue status
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mergify Merge Queue
Overview
The merge queue serializes PR merges, running CI on temporary merge commits to catch integration failures before they reach the target branch. Use the CLI to monitor queue state, inspect individual PRs, and manage the queue.
Commands
mergify queue status # Show queue status (batches, waiting PRs)
mergify queue status --branch main # Filter by branch
mergify queue status --json # Machine-readable JSON output
mergify queue show <PR_NUMBER> # Detailed state of a PR in the queue
mergify queue show <PR_NUMBER> -v # Full checks table and conditions tree
mergify queue show <PR_NUMBER> --json # Machine-readable JSON output
mergify queue pause --reason "..." # Pause the queue (requires reason)
mergify queue unpause # Resume the queueChecking Queue Status
Use mergify queue status to see the current state of the merge queue:
- Batches: groups of PRs being tested together, shown with their CI status and ETA
- Waiting PRs: PRs queued but not yet in a batch, shown with priority and queue time
- Pause state: whether the queue is paused and why
Use --json when you need to parse the output programmatically.
Inspecting a PR
Use mergify queue show <PR_NUMBER> to check why a PR is stuck or how it's progressing:
- Position: where the PR sits in the queue
- Priority: which priority rule matched
- CI state: whether checks are passing, pending, or failing
- Conditions: which merge conditions are met and which are blocking
- Use
-v(verbose) for the full checks table and conditions tree
Queue States
| State | Meaning |
running | Batch is actively running CI |
preparing | Batch is being set up |
bisecting | Batch failed, bisecting to find the culprit |
failed | CI failed for this batch |
merged | PRs in this batch have been merged |
waiting_for_merge | CI passed, waiting for GitHub to merge |
waiting_for_previous_batches | Blocked on earlier batches completing |
waiting_for_batch | Waiting to be picked up into a batch |
waiting_schedule | Outside the configured merge schedule |
frozen | Queue is paused |
Pausing and Unpausing
Pause the queue to temporarily halt all merges (e.g., during incidents or deployments):
mergify queue pause --reason "production incident — halting merges"
mergify queue unpause- Pausing does not cancel running CI — it prevents new merges from starting
- The reason is visible to all team members in the queue status
- Use
--yes-i-am-sureto skip the confirmation prompt in scripts
Troubleshooting
PR not entering the queue:
- Check that the PR's merge conditions are met:
mergify queue show <PR_NUMBER> -v - Look at the conditions section for unmet requirements
PR stuck in queue:
- Check CI state:
mergify queue show <PR_NUMBER> - If checks are failing, inspect the failing checks with
-v - If the queue is paused, check who paused it:
mergify queue status
Queue moving slowly:
- Check for failing batches that trigger bisection:
mergify queue status - Bisecting batches test PRs individually, which is slower than batch merging
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

