How Merget works
Follow six pull requests from arrival to merge. See why a setup-guide fix can land first while changes to billing and retry behavior are coordinated.
On this page
Which work has to wait for billing?
In acme/payments, three billing changes are open. #241 renames formatAmount, #242 adds a checkout call to it, and #243 changes invoicing. Two other pull requests change the retry policy and its tests. The last to open, #246, fixes the setup guide.
The guide passes CI on its branch. To decide whether it can ship first, the team needs to know which of the other five changes it depends on. The billing authors also need to know which version of the formatter their code will meet.
The setup guide (#246) can land first. The two retry changes and three billing changes form separate groups that can prepare in parallel.
What to look for
- #246 changes only setup documentation and is independent. #244 and #245 interact through retry behavior. #241, #242 and #243 interact through the billing formatter.
- The queue groups interacting pull requests and shows the suggested merge order. Select a pull request to inspect its position and dependencies.
- Groups can prepare in parallel. Pull requests land in queue order after their required checks and reviews pass.
1. Incoming pull requests
Open, non-draft pull requests against the repository's target branch join the queue automatically. A pull request stacked on a queued parent joins too.
The Merget check appears on GitHub, the dashboard queue shows the pull requests, and Runs records their analysis. Closing a pull request, making it a draft or retargeting it outside the queue removes it.
2. Map relationships across pull requests
Merget analyzes the queued changes in parallel. Its static analysis code graph connects the formatter in #241 to callers in checkout and invoicing, even though the edits are in different files. That puts the three billing changes in one group. The retry changes form a second group. The setup guide stands on its own.
In the queue, Relationships shows which pull requests are related. Code lets you inspect the changed symbols that connect them. Two changes can share a function and still work together as written.
3. Form the merge order
With all six changes available to order, Merget puts #246 first. Once the guide meets its merge requirements, it can land while the other authors work on retry and billing. The two related retry changes follow, then the three billing changes. If a change is stacked on another, the parent goes first in their shared queue. Select a pull request and expand Queue position & history to see why it holds its position.
The Merge order list gives the landing order. The Git tree shows commit ancestry with queue annotations; its commit order is not the merge order. See Repository queue.

Read merge order from the list; use the map to inspect relationships.
What to look for
- Position is shown beside every pull request. Readiness appears beneath its title.
- Switch the left pane between Merge order and Git tree. Select a pull request to open its details.
4. Preparation
In Advisory mode, Merget reports the order and its findings. You make changes and merge in GitHub.
In Queue and Autonomous modes, it prepares each pull request against the changes it will meet, tries to resolve conflicts and repairs blocking findings where it can. It does not repair a Review break, something the pull request breaks on its own: that fix is its author's. Independent work can be prepared at the same time.
In the billing group, checkout calls the old name and the rename removes it. Combining the two can leave a broken reference even though Git can merge both files cleanly. That finding tells the billing authors what needs fixing. The guide can proceed on its own.
Illustration: a broken reference across two files in the guide’s billing example.
What to look for
- #241 renames the formatter and updates the callers that already existed.
- #242 adds a caller of the old name on its own branch. The changes can merge without a textual conflict.
- The combined code calls a missing function. Updating the new call to formatCurrency repairs this example; the result still needs validation.
Predicted base
The predicted base, also called the predicted trunk in the dashboard, is the code your pull request will meet when it lands (the target branch plus the pull requests ahead of it). In the illustrated order, checkout (#242) goes ahead of the rename (#241). When Merget prepares the rename, its predicted base includes the new checkout call. If the rename goes first in a different plan, checkout must use the new name, formatCurrency.
A pull request ahead that conflicts with the target branch or with the ones before it is not part of the predicted base until the conflict is resolved. In Queue and Autonomous modes, the pull requests behind it are prepared on what comes before it, and again once Merget resolves the conflict or moves that pull request behind them. In Advisory mode, which resolves nothing, Merget leaves out only the conflicting pull request and any stacked on top of it, so the ones behind it are still checked against each other.
A fix for a conflict with the current target can be pushed to the pull request branch. A fix that depends on another queued pull request stays with the queue's combined result until that dependency lands. Your branch does not receive another pull request's changes just because it is behind that pull request in the queue.
On GitHub, a conflict your pull request has only with one ahead of it says so: its review comment reads Conflict with #241 (not merged yet). In Advisory mode the check title says the same, for example Merget: 1 conflict with #241 (not merged yet) · 0 findings, and the comment adds Nothing to do yet — resolve after #241 merges. See Conflict comments.
The run records what was detected and what Merget did about it. Needs you identifies work Merget could not finish, including whether you should act now or wait for an earlier pull request to merge. See Conflict resolution.
5. Verification and merge
A fix Merget pushes is normally checked by your CI. You can also set Merget's own build to Auto or Custom recipe in the repository's settings to run your build and tests before publication. The run says what verified the result, or why it remains not verified. See Validating fixes.
With batching, CI can test several prepared pull requests together. Ready in sequence means a change is prepared to follow the preceding changes; it does not by itself mean CI tested the combination.
Queue mode: merge in GitHub in the displayed order, or review and confirm an offered Merge N PRs action.
Autonomous mode: Merget merges ready work according to the repository's checks, reviews and landing settings.
Advisory mode: merge in GitHub when you choose.
Each pull request keeps its own place in the target branch's history. The queue's Activity tab records merges and other actions. See Batching.

Check whether the prepared result was validated and whether the fix was published.
What to look for
- Validation says which result passed; publication identifies the pushed commit.
- Compare changes opens the source-to-prepared difference for review.
When Merget checks again
Pushing new commits, moving the target branch or changing relevant repository settings can make an earlier result out of date. The queue updates and prepares affected pull requests again. A run that something overtook says what changed when it recorded it, such as Replaced by a new push or PR closed, and reads Outdated otherwise. See Outdated runs.
Use Retry preparation after a temporary failure. For a conflict or failing check, fix the reported cause first. See Unblock a pull request.
Limits
Merget does not prove correctness or replace review. Coverage depends on the language and the change. A waiting head normally holds later work, but Merge what's ready and the optional Passing lane can let eligible work proceed. GitHub branch rules still determine what actions the App can perform.
See Languages and limits, Automation modes and Branch protection.