Overview
Auto-approve lets Gitar submit an approving review on your behalf after a clean code review. You define criteria in natural language, and if they are met, Gitar approves the PR without any manual action required.Criteria-Driven
Define approval conditions in natural language
Post-Review Only
Only runs after a clean code review with no blocking findings
Per-Repo Control
Extend org criteria per repository with a config file
How It Works
Code review completes
Gitar reviews the PR or MR as usual. If there are blocking findings, auto-approve is skipped.
Criteria are checked
Gitar evaluates your configured criteria against the PR. If they are satisfied, it moves on to approval.
Enabling Auto-Approve
Auto-approve is configured in your organization settings:- Navigate to Settings in the Gitar dashboard
- Open the Code Review section
- Enable the Auto-approve PRs/MRs based on code review toggle
- Enter your approval criteria in the text area that appears
- “Only approve if the changes are limited to documentation or test files”
- “Approve changes to the
docs/directory or files ending in.md” - “Skip approval if the PR modifies authentication or payment logic”
Per-Repo Criteria
Repositories can extend the org-level criteria by placing a Markdown file at.gitar/config/approve.md. When this file is present and non-empty, its content is combined with the org criteria. Both must be satisfied for Gitar to approve.
See Repository Configuration for more on the .gitar directory and how repo-level config files work.
Combination Logic
| Org criteria | Repo file | What Gitar uses |
|---|---|---|
| Set | Present | Org criteria + repo file |
| Set | Absent | Org criteria only |
| Empty | Present | Repo file only |
| Empty | Absent | Approve all passing reviews |
Platform Behavior
GitHub
GitHub
Gitar submits an approving review on the PR. If your branch protection rules require an approving review, this satisfies that requirement.
GitLab
GitLab
Gitar approves the MR. If your approval rules list Gitar as an eligible approver, this counts toward the required approval count.
Auto-approve only ever submits approvals and never requests changes. If anything goes wrong during evaluation, the step is skipped and the PR is unaffected.