Risk Triage

Every plan

A clean review isn’t the same as a safe change.

Gitar rates every pull request Low, Medium or High risk using your team’s own definition, so reviewers spend their time where it matters and low-risk changes can merge on their own.

Fix rounding in settlement calcpayments-api #412 · +3 −1No defects foundHigh riskAdd retry to webhook clientnotifications #87 · +48 −121 finding fixedMedium riskFix typo in onboarding guidedocs #230 · +2 −2Auto-mergedLow risk.gitar/config/risk.mdChanges to the settlement schedule are high risk.AUTO-MERGEOnly when risk is Low
The problem

Every PR gets the same attention, whatever it touches.

1. Small diff, big impact

2. Equal attention

3. Blind automation

How Gitar solves it

From diff to decision, in three steps.

Assess the whole change

Gitar reads the full PR diff, not just the latest push, and applies your organization's risk instructions.

Apply repository guidance

A .gitar/config/risk.md file can raise the rating for local constraints. It can never lower the organization's assessment.

Refresh before anything merges

When the change moves, including after a Gitar fix, risk is reassessed before approval or merge criteria run.

Three PRs, three ratings. With auto-merge set to Low only, just the low-risk change merges on its own.
The capability in detail

What Risk Triage covers.

Low · Medium · High

Clear defaults

Out of the box, Low means narrow changes, Medium bounded behavior changes, and High sensitive or broad impact such as auth, payments or migrations.
impact, not defects

Rated even with no defects

Risk measures what a change could affect, separate from finding severity and the review verdict.
natural language

Your definition of risk

Write what each level means for your team in plain English, under Settings > Configuration > Custom Instructions.
.gitar/config/risk.md

Guidance that only raises

Teams add local constraints per repository without weakening the organization's policy.
auto-approve · auto-merge

Gates approval and merge

For example, auto-approve low and medium risk, auto-merge low risk only. Blocking findings and platform checks still apply. Auto-approve and auto-merge are available on Pro and Enterprise.
defaults to caution

Fails safe

Uncertain impact rates Medium. If an assessment can't complete, it rates High, so it can never satisfy a low-risk rule.
no extra tool

Right on the PR

The rating appears in the Code Review section of Gitar's PR comment and in the Gitar dashboard.
all plans

Every plan, every code host

The risk rating is included on all plans. Auto-approve and auto-merge criteria need Pro or Enterprise.
Try it yourself

Follow the blueprint.

A step-by-step developer guide from Sonar for setting up and trying Risk Triage.

Blueprint

Gitar Risk Triage and Cross-PR Analysis for sensitive code

Mark sensitive paths high risk, catch two open pull requests that break only when both merge, and auto-approve only low-risk changes.

Don't just review. Ship.

Free 14-day trial. No credit card required.