Overview
Gitar monitors your CI pipelines and automatically analyzes failures on every PR. It identifies root causes, posts detailed breakdowns, and can push fixes.Which CI Platforms Need Connecting
Gitar reads CI logs so review and repair can follow the pipelines attached to the repository. Gitar reads GitHub Actions, GitLab Pipelines, Bitbucket Pipelines, and Azure DevOps Pipelines with no setup, using the credential from your code host connection. Every other CI platform reports its builds to the pull request as a status check, and Gitar needs its own credential to follow that link and fetch the log. Connect the ones in use:How It Works
When CI fails on a PR, Gitar automatically:1
Analyze the failure
Gitar reads the CI logs, identifies the failing step, and determines the root cause of the failure.
2
Post an analysis comment
A detailed explanation of the failure is posted to the dashboard comment on your PR, including which files and lines are involved.
3
Suggest or apply a fix
Depending on your auto-apply setting, Gitar either waits for your approval or pushes a fix commit directly to the branch.
Applying Fixes
After Gitar posts its analysis, you have three options:
Auto-apply can be toggled at any time with
gitar auto-apply:on / gitar auto-apply:off. See Commands & Interactions for all available commands.
CI Retry for Unrelated Failures
Gitar can automatically retry CI jobs whose failures are not related to the changes in your PR, such as flaky tests, transient infrastructure hiccups, or failures caused by the target branch. When any failure in a pipeline is classified as unrelated to the PR, those jobs are rerun without any manual action. CI retry has its own toggle in organization settings, independent from auto-apply. On Azure DevOps Cloud and Server, the PAT needs Build (Read & execute) for retries. Build (Read) is enough for analysis. See the Cloud or Server setup guide.Recovery after a Gitar fix
When Gitar breaks previously passing CI, it can attempt a follow-up repair with auto-apply off. Recovery requires the latest failure to be related to the PR, with one or two consecutive Gitar commits after a commit whose CI passed. This recovery is separate from retrying an unrelated flaky job. See CI Retry for Unrelated Failures for that setting.Multi-Iteration Fixing
CI failures may not be resolved in a single pass. Gitar supports multi-iteration fixing:- Gitar pushes a fix for the original CI failure.
- CI re-runs on the updated branch.
- If CI fails again (whether from the same issue or one the fix introduced), Gitar re-analyzes the new failure.
- Gitar attempts another fix, taking into account the full history of previous attempts.