Your policy

What your Merge Gateway policy checks before the production reviewer, and how to change its reviewers, CI, critical code, scope and versions.

Your policy decides which PRs take the fast track. It has two parts: your GitHub checks, which this page covers, and Hud's production reviewer. A PR takes the fast track only when it passes both. Hud drafts your first policy from your last 100 PRs. See Set up the Merge Gateway.

On the Merge Gateway page, the GitHub checks column has three boxes: Reviewers, CI and Custom conditions. Select a box's settings icon to change it. Each panel shows how many PRs that box stopped.

Reviewers

Hud lists every reviewer that runs on your PRs, such as CodeRabbit, BugBot or your own bot, and how often each one runs. For each reviewer, choose what it needs before a PR can take the fast track:

  • Run: the reviewer has run on the PR.
  • All comments: the reviewer has no findings on the PR.
  • Critical only: the reviewer has no critical findings. This option isn't available for a bot that doesn't mark severity.

With A person's comment holds the PR turned on, a comment from anyone but the author sends the PR to manual review.

CI

Your required checks come from your branch protection in GitHub. Select View checks to see every CI check on your PRs, required and optional. A PR takes the fast track only when its required checks pass.

Two more settings:

  • Skip slow suites on low risk: when production risk is low, Hud skips your slowest suites, such as end-to-end or load tests. The panel names those suites and shows how much CI time this saved in the last 30 days.
  • Ask for a test on uncovered hot paths: when a PR changes a hot path that no test covers, Hud asks for a test and holds the PR.

Critical code and title rules

The Custom conditions box sets what Hud never fast-tracks:

  • Critical files and folders: one path per line, with ** for a whole folder, such as services/orders/**. Each path shows why it's critical, such as fix commits, reverts or review comments from your history.
  • Changes to schemas, migrations or IaC: tick each kind of change that should never take the fast track.
  • Title rules: one word or phrase per line. Hud never fast-tracks a PR whose title contains one, such as do-not-merge or WIP.

Scope

A policy covers the whole repository by default. The Scope menu lists the directories in your CODEOWNERS file, with the team that owns each one. A directory can have its own policy, stricter or faster than the default. A directory without its own policy uses the repository default.

Before you activate

While a policy is a draft, Simulate policy replays your 20 most recent PRs through it and shows where each would land. Nothing is approved, merged or commented on. Activate turns it on. See Set up the Merge Gateway.

Versions

Each change to the policy makes a new version. The Change log at the bottom of the Merge Gateway page lists every version, with when it was made and by whom, and marks the active one.

To turn the policy off, select Deactivate.


Did this page help you?