Documentation Index
Fetch the complete documentation index at: https://docs.gitar.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Gitar can prevent a PR from being merged when its code review finds issues above a severity threshold you configure. It uses your platform’s native review mechanism — requesting changes on GitHub or unapproving on GitLab — so the block integrates with your existing branch protection rules.How It Works
Verdict is evaluated against the threshold
If the verdict meets or exceeds your configured blocking level, Gitar submits a blocking review on the PR.
Enabling Block Merge
- Navigate to Settings in the Gitar dashboard
- Open the Code Review section
- Enable Block merge based on code review
- Select your desired blocking level
Platform Behavior
GitHub
GitHub
Gitar submits a “request changes” review on the PR. If your branch protection rules require approving reviews or no outstanding change requests, this blocks the merge button.When the block is lifted, Gitar dismisses its review. Repository admins can also dismiss the blocking review manually through GitHub’s UI — Gitar respects this override and will not re-block for the current review cycle.
GitLab
GitLab
Gitar adds itself as a reviewer and withholds approval. If your approval rules require Gitar’s approval, the MR cannot merge until the block is lifted.When issues are resolved, Gitar approves the MR to unblock it.
Overriding a Block
If you need to merge despite unresolved findings, you have two options:gitar unblockcommand — Commentgitar unblockon the PR to dismiss the blocking review and allow merging.- Platform override — Dismiss the blocking review directly through GitHub or GitLab’s native UI.