<!-- The Merget check | Merget Docs · https://merget.ai/docs/pr-check -->

# The Merget check

Read the check and review comments Merget adds to eligible pull requests, and re-run them when you need to.

The Merget check on GitHub gives the current result for a pull request and links to the full run. Inline review comments point to findings on changed lines. In Queue and Autonomous modes, Merget also updates a pull request comment when it needs you to resolve conflicts or publishes a fix.

## The check is named `Merget`

Look for Merget in the pull request's checks list. This is also the name to require in GitHub branch protection.

Older commits and branch rules may still use `sema`. If GitHub waits for that old check, update the required check to Merget from the Merget GitHub App. Repository settings identify requirements Merget could not update automatically.

Illustration: use the Merget check’s title and summary for the specific reason, then follow its run link for evidence.

What to look for

- Find the check named Merget on the pull request. Its summary links to the corresponding Merget run.
- In Queue and Autonomous modes, Action required holds a prepared pull request while it waits for its turn or batch testing. Failure points to a blocker that needs action.
- Success means the queue permits the pull request to merge, including members of a ready batch or passing lane. Read its CI qualifications and the configured landing policy. In Advisory mode, blocking findings fail the check; otherwise it is Neutral.

## When the check runs

Enabled repositories analyze open, non-draft pull requests against the target branch and supported stacks. New commits, a moved target, relevant settings changes or a retry can start a new run. No label or comment command is needed.

Advisory: reports conflicts and findings without changing branches, and fails on a blocking finding.

Queue and Autonomous: also prepares changes, attempts fixes and reports their verification and queue readiness.

While work is active, the check is In progress and describes the latest step. A fix waiting for your CI keeps that wait explicit. See [Runs](https://merget.ai/docs/runs) and [Validating fixes](https://merget.ai/docs/validation).

## Conclusions

### Advisory mode

| Conclusion | What to read it as |
| --- | --- |
| Failure | The analysis found a blocking finding: a Break, an Interaction or a Review break. A Review break blocks unless the repository sets `review.l1` to `advisory` or `off`; see [Review findings](https://merget.ai/docs/findings#review-findings). The title counts them, for example `Merget: 2 breaks block the merge` or `Merget: 1 review finding blocks the merge`, and the summary's Blocked section names the first. Merget changes nothing in Advisory mode: fix it on the branch, or [dismiss the finding](https://merget.ai/docs/findings#dismiss) if it is wrong. Where branch protection requires the Merget check, GitHub refuses the merge until then. |
| Neutral | Nothing blocks, or the run did not finish. Read the title and summary for findings, conflicts or an error; neutral does not mean the code was tested or no conflict exists. |

### Queue and Autonomous modes

| Conclusion | What to read it as |
| --- | --- |
| Success | Merget's current queue decision permits the pull request or ready batch to proceed. Read the summary for CI evidence and other requirements. |
| Action required | The change is waiting for its turn, batch CI, a retest, its re-validation after the target branch moved, a maintainer's approval of a fork or bot pull request's commit, or another stated queue condition. This does not always mean you must edit code. |
| Failure | Preparation, publication or required CI is blocked. Read What to do and the reason. |
| Neutral | An older run may have been replaced by a newer commit. See [Outdated checks](#superseded). |
| Cancelled | The run did not finish, for example because it was cancelled, timed out or failed. |

A prepared pull request behind others normally waits. Members of a ready batch or passing lane can have successful checks under their stated landing order. GitHub's other checks, reviews and branch rules remain relevant.

A pull request that carries a [fix submitted to Merget](https://merget.ai/docs/batching#submit-a-fix) never reads Success: where it would, it reads Action required, for example "Merget: certified with a merge-time fix by alex; lands through Merget". GitHub's merge button would land it without the fix; Merget lands it with the fix. Once Merget's push has landed it, its check reads Success, "Merget: landed with a merge-time fix by alex", and one that carried a [resolution submitted to Merget for merge time](https://merget.ai/docs/conflict-resolution#resolve-for-merge-time) reads "Merget: landed with a merge-time resolution by alex".

A member of a batch tested on top of another batch reads Action required while it waits on that one, for example "Merget: in batch b-9e8d7c6b (2 PRs) · testing behind batch b-0f3c9a2e", or "green behind batch b-0f3c9a2e" once its own CI passed. When every batch ahead of it is green too and the landing is a fast-forward push (in Queue mode, under a merge request that covers its batch whole), the chain of green batches lands by one push: the target branch moves to the last batch's commit, and every member's check turns Success for that push. See [Several batches in CI at once](https://merget.ai/docs/batching#several-batches-in-ci-at-once).

## After the target moved

When the target branch moves, the check can read Action required, Merget: re-validating over main after it moved. An earlier result may no longer apply to the code the pull request will meet. Wait for the refreshed result before merging.

Once re-validation completes, Queue and merge requirements identifies the target commit that was checked and links to the earlier preparation run. Findings refreshed against the new base means the findings were updated too. Read the current check together with its linked run for the preparation, fixes and verification evidence; a historical run remains a record of its original inputs.

The check may still wait for batch CI or another merge requirement. See [When the target moves under the queue](https://merget.ai/docs/merge-queue#target-moved) and [Statuses and outcomes](https://merget.ai/docs/states).

## The check title

The title gives the result in one line. In Advisory mode, when Git could not merge the pull request, the title counts the conflicts and says what they are with, then counts the findings:

`Merget: 1 conflict with main · 0 findings`: a conflict with the target branch, which GitHub shows too.

`Merget: 2 conflicts with #1 (not merged yet) · 3 findings, 0 breaks`: conflicts only with a pull request ahead in the queue. GitHub shows them only once #1 merges. When #1 merges, Merget checks the pull request again, and the new title says the conflicts are with the target branch.

`Merget: 3 conflicts (2 with main, 1 with #1) · 0 findings`: both.

A blocking finding wins over the conflicts, because it is what fails the check: `Merget: 1 break blocks the merge · 2 conflicts`.

When Merget's review finds something this pull request breaks on its own, against the code it lands on, the title counts that too, for example `Merget: 1 review finding (non-blocking)`, `Merget: 1 conflict with main · 1 review finding` or, in the queue, `Merget: waiting for #6 to merge first · 1 review finding`. Review findings are counted apart from the other findings. A precise one blocks, like any other precise finding, unless the repository sets `review.l1` to `advisory` or `off`, and the title then reads, for example, `Merget: 1 review finding blocks the merge`; see [Review findings](https://merget.ai/docs/findings#review-findings). A pull request ahead's findings that this one builds on are named in the summary, for example "Inherits 1 finding from #6 … — reported on #6's check; not counted here.", and are never counted in this title.

In the queue, when a pull request's only blocking findings are interactions found only over pull requests ahead of it, the title says what it waits on, for example `Merget: waiting on #6 — 1 interaction found only over it`, and the check asks for action rather than failing; Merget prepares it again once #6 merges or leaves the queue.

Queue and Autonomous modes also only analyze a commit that waits for a maintainer's approval. Its title says so whatever the analysis found, for example `Merget: awaiting maintainer approval of abc1234 · analysed only`, and its review comments say what each conflict is with.

In Queue and Autonomous modes Merget prepares the pull request and resolves its conflicts. A preparation that could not resolve them reads, for example, `Merget: blocked — 1 unresolved textual conflict`, and What to do in the summary says what is yours to resolve. One that resolved them reports the prepared result instead.

The finding count is the number of findings the run shows you, the same number the dashboard shows. Findings that depend on a conflicted file are counted after it, for example `; 4 more depend on the conflict`, and are judged again once the conflict is resolved.

## The check summary

Read the summary in this order:

What to do, when Merget needs a person: the files, timing and next action.

Conflicts and findings detected, including what remains after any fix.

Verification: what CI or build ran, what failed and what is not verified.

Queue position, batch or passing-lane membership, and remaining merge requirements.

Changes published and links to the run or commit.

Findings lists every finding the counts count, including the ones no review comment can carry because they sit outside the pull request's diff. Each row gives the tier (Break in bold when it blocks), the finding's kind and place, and its message. The first row of each kind also says what the kind means and how to fix it, in the words its review comment would use. A finding that depends on a conflicted file is listed under that file instead, for example "Depends on the conflict in `third.py`: 1 reference in 1 file", and the summary's counts end with how many depend on the conflict, as the title does. One stale call is one finding, even when Merget reads it both as a broken reference and as a deleted dependency: the check lists it once, normally as the broken reference. A call that sits inside a conflicted file gets no review comment of its own; the conflict's comment covers the file.

What Merget is doing records progress and matches the run page's Timeline. Long finding lists link to the dashboard for the full record.

### Conflicts found

Merget reports textual conflicts before publishing a fix. Each conflict identifies the file and what it conflicts with:

with main or another target name: a conflict against the current target branch;

with #N (ahead in the queue): a conflict against an earlier queued change that GitHub may not show yet.

After resolution, the record says whether the fix reached the pull request branch or is held in the queue candidate. See [Where each resolution goes](https://merget.ai/docs/conflict-resolution#where-resolutions-go).

## Open the run page

Click Details or Run details. The dashboard shows the run's outcome, findings, conflict evidence and verification.

In Advisory mode, Outcome summarizes the result in a table and File report groups findings by file. Expand a file to read its findings; expand Coverage & activity for supporting details. Queue and Autonomous modes use a Findings explorer: select a finding to compare What was detected with Merget outcome. Use Search findings or files and Finding outcome to narrow the list.

The run page separates the outcome from the evidence behind it.

What to look for

- The header identifies the pull request, analyzed commits and final outcome.
- Each count is what the analysis detected, the same as in Runs; the line beneath says how many Merget resolved and how many remain.
- Finding dispositions distinguish fixed findings from remaining work. Read Detection and resolution below to review changes.

## Outdated checks

A check applies to the commit it analyzed. If the pull request changes during a run, the older check ends naming the newer commit, or saying the pull request was closed or merged. The run's badge says what changed when the run recorded it, such as Replaced by a new push, and reads Outdated otherwise. Read the check on the current head.

When Merget publishes a fix, the original run remains available for the evidence of what changed. A published commit does not make an earlier conflict record disappear from that history.

## Review comments

Merget places an inline comment where a finding belongs to a changed line. Findings elsewhere appear in the check and dashboard. Each comment reads on its own, in this order:

What the finding means for the merge: Break (blocks the merge), Interaction (blocks the merge), Possible break (does not block) or Overlapping change (does not block). A finding about what this pull request breaks on its own, against the code it lands on (the target branch plus the pull requests ahead of it in the queue), reads Review break (blocks the merge) when it blocks, as a precise one does unless the repository sets `review.l1` to `advisory` or `off`, and Review (this pull request against the queue's predicted base; does not block) otherwise. In Queue and Autonomous modes, an interaction found only over pull requests ahead of it in the queue reads Interaction found only over #6 (waits for #6 to merge or leave the queue). The words are the same in Advisory mode, where a blocking finding fails the check too, except one that holds only over the pull requests ahead of this one in the suggested order: it reads Break (blocks once the pull requests ahead of this one merge) (or Interaction or Review break, the same way) and does not fail the check. See [Findings in Advisory repositories](https://merget.ai/docs/findings#would-block).

Why it matters and how to fix it, in one line for the finding's kind. For a broken reference: "This calls something the other side removed or renamed, so the merged code will not build, or fails where the call runs. Update the call, or restore what it calls." A review finding's line is about this pull request alone, for example for a function it renamed while a call to the old name remains: "This pull request removes or renames a function that is still called here, so the merged code calls something that no longer exists. Update the call, or keep the old name (an alias will do)." A finding that depends on a conflicted file says so instead: Merget reads that file again once the conflict is resolved. The comment then says who resolves that conflict, as the conflict's own comment does: Merget in Queue and Autonomous modes, or you when the conflict is yours.

The finding's kind and message, its confidence, and what each side set out to do when Merget knows.

What Merget did about it, when it did something.

The repository's mode and an Open in Merget link to the run, for example `Queue mode · Open in Merget`.

Comments are updated as a finding changes. A finding that disappears may be struck through; one withdrawn for low confidence is identified as withdrawn instead of repaired. In Queue and Autonomous modes, when Merget prepares the pull request, it also resolves the review thread of each comment it has struck through, and reopens the thread if the finding comes back. In Advisory mode, and while a commit awaits a maintainer's approval, Merget leaves review threads as they are. Resolving a GitHub review thread yourself does not dismiss the finding in Merget; to say a finding is wrong, [dismiss it](https://merget.ai/docs/findings#dismiss). A dismissed finding's comment, if it had one, is edited to lead with Dismissed (does not block) and "Dismissed by @login: reason", without the line on how to fix it; Merget posts no new comment for it. In the check's findings list it reads Dismissed, with the same line.

Merget does not approve pull requests or request changes as a reviewer. See [Findings](https://merget.ai/docs/findings).

### Conflict comments

A conflict's comment starts with what the conflict is with:

Conflict with main: a conflict with the target branch, which GitHub shows too.

Conflict with #1 (not merged yet): a conflict only with a pull request ahead of yours in the queue. GitHub does not show it until #1 merges.

Conflict with main and #1 (not merged yet): a conflict with the target branch in a file #1 changes too.

It then says in plain words what each side did to the file, and what to do:

| Mode | Conflict with the target branch | Conflict with a pull request ahead |
| --- | --- | --- |
| Advisory | Merge main into this branch and resolve. | Nothing to do yet — resolve after #1 merges. |
| Queue and Autonomous | Merget resolves this before merging and reports here what it did. | Merget resolves this before merging and reports here what it did. |
| Queue and Autonomous, commit awaiting a maintainer's approval | Merget resolves this once a maintainer approves this commit, and reports here what it did. | Merget resolves this once a maintainer approves this commit, and reports here what it did. |

For build output, the comment says to regenerate the file instead of resolving it by hand.

In Advisory mode, once #1 merges, Merget checks the pull request again. The same comment then says the conflict is with the target branch and to merge it into your branch and resolve.

A conflict can also go away without Merget resolving it: #1 is closed, or you resolve the conflict on your branch. Once a later run no longer finds the conflict, the comment is struck through and a line under it says why, such as "#1 was closed without merging, so this conflict no longer applies." or "This pull request no longer conflicts with main." In Queue and Autonomous modes Merget also resolves the comment's review thread; in Advisory mode the thread stays open. If the conflict comes back, for example because #1 is reopened, the comment is restored, and Merget reopens its thread if it resolved it.

In Queue and Autonomous modes the comment then records what came of the conflict: resolved and published, held with the queued combination, or left for you. A conflict left for you gets the Advisory step instead of the promise, for example "Merge main into this branch and resolve." above Not resolved. A held resolution is not yet a commit on your branch. Once the pull request ahead lands, the comment says the conflict is with the target branch, whether Merget publishes the held resolution or drops it to prepare the pull request again. A conflict only with a pull request still ahead keeps saying so.

In Advisory mode the check lists each conflict the same way, with what it is with and what to do. That includes conflicts no comment can carry, such as a binary file or a file this pull request deleted.

What conflicts, collapsed under the comment, shows the first conflicting stretch the way Git writes a conflict with the merge base shown: this pull request's side, the base, then the other side. A note under it says when the file has more conflicting stretches or a long side was cut. The comment ends with the repository's mode and an Open in Merget link to the run, for the two sides and the resulting edit.

The Merget tried list records attempts and their results. Did not resolve it means an attempt left the conflict unresolved; a skipped or unavailable attempt includes an explanation. An attempt alone is not proof that a fix was accepted, verified or published. Read the final outcome and follow the linked run or commit before acting. See [Read the resolution result](https://merget.ai/docs/conflict-resolution#resolution-labels).

## The pull request comment

Merget keeps a conversation comment updated when it hands conflicts back to you or publishes a fix. It says what changed, what still needs action and whether the work should happen now or after an earlier pull request merges.

Follow the link to the live Needs you view for the latest state. A historical comment or run can describe work that a newer push has already addressed.

## Re-run the check

Use GitHub's Re-run action after fixing a temporary problem. It also asks Merget to rebuild the queue plan, which can affect a pending merge.

To retry only the pull request while keeping the current plan, select it in the dashboard queue and use Retry preparation. This requires Write access on GitHub. Fix a persistent code or CI failure before retrying.

## What a green check means

A successful Merget check reports a queue decision for the current change or batch. It is not a substitute for your build, tests or review.

Read the summary when it qualifies readiness with not verified, no CI ran, optional CI failures or a recorded exceptional landing. To enforce a build or test, require that check on the target branch or under Required CI checks, and make it run on `merget/queue/**` branches.

See [Branch protection](https://merget.ai/docs/branch-protection) and [Batching](https://merget.ai/docs/batching).
