Skip to main content
Start with .gitar/config/risk.md at the root of one repository. Choose the example that fits how your team reviews changes. Before enabling auto-approval, compare Gitar’s explanations on a few familiar PRs with the risk levels your reviewers would assign.

Rate changes by their impact

This example suits a service that stores customer records. A change to who can read a record deserves closer review even when the diff is one line and the review finds no defects.
.gitar/config/risk.md

Account for gaps in release tests

Use this alternative when a team relies on a release test that exercises only part of a workflow. Replace the import example with the path your test actually covers. Revise that description when the test changes.
.gitar/config/risk.md
Repository guidance can raise, but cannot lower, the organization’s risk level, so a Low rule in risk.md only takes effect when the organization’s assessment is already Low. Gitar considers the default branch’s risk.md and additions in the PR under review. See Risk triage.

Limit what Gitar can do automatically

Add only the files for the actions your team uses. Gitar reads these criteria from the default branch and applies them alongside organization criteria. Turn on each action separately when ready. Enforce required CI checks on the code host.

Fix review findings

This example limits automatic fixes for review findings to spelling corrections in prose. CI fixes and explicit fix requests run independently. See Auto-apply.
.gitar/config/apply.md

Approve low-risk changes

.gitar/config/approve.md

Merge a subset of approved changes

.gitar/config/merge.md
With these examples, a PR that only adds a regression test can qualify for auto-approval and still need a person to merge it. The auto-merge example assumes the repository keeps user documentation under docs/.

Tell reviewers what to look for

A review instruction can point to a specific defect that would matter in a high-risk area. For the import example, give Gitar a failure case it can trace in the diff.
.gitar/review/import-retries.md