Skip to main content

Interacting with Gitar

You can interact with Gitar in PR and MR comments. Start your comment with gitar or @gitar (case-insensitive), mention @gitar-bot anywhere in the comment (GitHub), or reply directly to one of Gitar’s comments or inline findings (no prefix needed). On GitLab, you can also mention the connected GitLab account, for example @gitar-service-yourorg. On Azure DevOps Server, follow the comment checkbox instructions if the PR description includes Ask Gitar to read my new comments. Commands need write access to the PR, and bot accounts are ignored unless an admin lists them under Allowed bots in scope settings. Gitar understands natural language. Ask it to fix something, make changes, or answer questions:
  • gitar fix this or reply fix on an inline finding
  • gitar please add a unit test for this
  • gitar why was this file changed?
  • gitar create a Jira ticket for this
Where supported, Gitar reacts with eyes when it starts processing and thumbs-up when a command is processed or an integration request completes. Azure DevOps and both Bitbucket editions do not show these reactions.

Manual review requests

Comment gitar review or gitar please review on a PR or MR to request a code review. Use this when the repository processes changes on demand or automatic reviews are paused by usage limits. Your plan must include code review. A request using either exact phrase does not count toward your comment rate limit if the current commit has not been reviewed. Once that commit has been reviewed, repeated requests count toward the limit.

Commands

Commands control Gitar’s behavior on a specific PR. Commands are case-insensitive and accept trailing punctuation or surrounding backticks. You can include multiple commands in one comment, on the same line or separate lines. If commands change the same setting, the last one wins. When replying to Gitar, include gitar or @gitar for the commands listed below. Auto-apply, auto-merge, and display commands require a plan that includes the corresponding feature. If a command is unavailable on your plan, Gitar replies with an upgrade notice. When your organization reaches its usage limit, gitar auto-apply:on is blocked and Gitar replies with a rate-limit notice.

Unblock

Comment gitar unblock to release Gitar’s merge block. Gitar does not re-block the PR or MR on later pushes until its review verdict changes; if a later review clears and new blocking findings appear afterward, Gitar can block again. Other merge requirements still apply. See Block Merge for details on how merge blocking works.
The gitar unblock command must be enabled by an org admin in Settings -> Configuration -> Behavior. The hint in review comments only appears when Gitar is actually blocking the PR. The command is not available on Bitbucket Data Center, where Gitar’s review does not gate the merge.

Auto-Apply

Control whether Gitar automatically commits fixes to your branch for code review findings and CI failures. Turning auto-apply off still allows explicit requests such as gitar fix to change code. The preference lasts for the life of the PR. The dashboard comment shows the auto-apply status. Auto-Apply explains how organization and repository criteria limit which review findings Gitar may fix.

Auto-Apply by label

On GitHub and GitLab, gitar-managed enables auto-apply for a PR. See Labels for setting precedence and removal behavior.

Auto-Merge

Override your organization’s auto-merge setting for one PR. Turning auto-merge off prevents pending requests from enabling it. An action already sent to the code host may still complete. The command decides this PR only and holds for the life of it. See Auto-Merge for what has to be true before an armed PR actually merges.

Display Mode

Control how much detail you see in the Gitar dashboard comment. The default is compact mode. Your display preference persists across comment updates. The footer shows a hint for the opposite command. Compact mode (default) shows only applicable rules with a summary of how many were hidden: Verbose mode shows all rules with explanations for why each rule doesn’t apply: