> Crysk 0.9.0 docs. Index of every page: https://crysk.dev/llms.txt

# The check and the merge gate

What the `crysk` check says on a pull request, and how to make it block merges.

Crysk writes a commit status named `crysk` on the head of every pull request it handles. That status is the check. By default it is a gate: blocking findings turn it red, so a branch rule that requires it stops the merge. This page applies to the Crysk GitHub App and to the open-source GitHub Action.

## What the check says

| State | Description | Meaning |
|---|---|---|
| Pending | `crysk reviewing` | A review is running. |
| Success | `review posted` or `review complete` | The review finished with no blocking findings. |
| Failure | `crysk: N blocking finding(s) — fix and push, or /crysk override` | N blocking findings are still open. |
| Failure | `crysk: review partial (N of M hunters failed, …) — /crysk review retries it` | Some reviewers failed and no finding blocks, so the check cannot call it clean. A repeat reads `review partial again (…) — fix the failing route or /crysk override`. |
| Failure | `crysk skipped the review: … /crysk review reviews it anyway` | The pull request is over the size gate or a spend limit. |
| Success | `crysk: nothing to review — every changed file is excluded` | See [Exclude files](https://crysk.dev/docs/reviews/exclude-files.md). |
| Success or failure | `… carried from <sha>` | Crysk chose not to review this push (see [Re-review levels](https://crysk.dev/docs/reviews/review-levels.md), or `/crysk stop`), so it takes the verdict of the last reviewed commit. |
| Pending | `crysk: waiting for a manual review (…); carried from <sha> — /crysk review or /crysk override` | The automatic reviews for this pull request are used up, or the level is `manual`. Comment `/crysk review` to review the push, or `/crysk override` to merge it as is. |
| Success | `crysk: overridden by @login — no new review run` | A maintainer overrode the check. |
| Error | `review did not finish`, or `CRYSK-…: …` | The run failed. See [Error codes](https://crysk.dev/docs/reference/error-codes.md). |

## Gate or advisory

| Mode | What the check does |
|---|---|
| `gate` (default) | Red on blocking findings, a partial review or a size skip. Green on a clean review or one with only advisory findings. |
| `advisory` | Green for every finished review, whatever it finds. A push Crysk skips writes no status. |

Change it with the `mode` input of the action in `.github/workflows/crysk.yml`:

```yaml
      - uses: cryskai/crysk@v0
        with:
          mode: advisory
```

Or rewrite the workflow from your repository, keeping your other settings:

```bash
npx -y crysk setup --ci --ci-mode advisory --force
```

## Require the check

1. Open your repository's **Settings**, then **Branches** (or **Rules**, then **Rulesets**).
2. Add a rule for your default branch with **Require status checks to pass before merging**.
3. Add `crysk` to the required checks. It shows up in the list after Crysk has reviewed one pull request.

Do not require the `review` job of the workflow. It stays green when a review finds blocking findings, and goes red only when a review did not finish.

Private repositories on GitHub Free cannot require status checks, so there the check is informational.

## Merge anyway

Comment `/crysk override` on the pull request. It marks the check as passed on the current commit, without a review. See [Comment commands](https://crysk.dev/docs/reviews/comment-commands.md).
