Skip to main content

Setting up Code Review

To set up Code Review for your Unblocked team, select Code Review from the left sidebar. Next, click Set Up Code Review. If you haven’t connected your issue tracker, you’ll be prompted to do so. Enable Code Review

Configure Code Review

Once Code Review is enabled, you can adjust the settings to control how reviews are conducted. Click Settings in the sidebar, then select Code Review.

Select repositories

Unblocked will automatically review pull requests only for repositories you select. Select Repositories

Code Review user access

Use the Code Review User Access setting to control which users are eligible to receive automated code reviews. By default, All Users is selected, so Unblocked will review pull requests for everyone in your workspace. To limit reviews to specific people, choose Specific Users and select the users you want from the list. Only pull requests authored by those users will receive automated code reviews. Users who are not selected can still request a review manually by mentioning @unblocked in a PR comment. See Requesting a review for details. User Access

Automated approval

Use this setting to control what happens when Unblocked reviews a pull request and finds no issues. The options are:
  • Auto-approve (default) — automatically approve the pull request
  • Comment — leave a comment saying “No issues found”
  • Silent — take no action
On GitHub, auto-approvals do NOT count toward required approvals under your branch protection rules, because Unblocked isn’t a member of your organization. Treat the AI approval as a pass signal, and keep human reviewers for final sign-off.
Automated Approval

Custom rules

You can customize how Unblocked reviews code by providing repository instructions. When enabled, Unblocked follows repository-specific instructions from a broad range of common repo rule files, including AGENTS.md, CLAUDE.md, GEMINI.md, CONTRIBUTING.md, and rules in common directories such as .cursor/rules, .github/instructions, and .claude/rules.

Examples

For best results, write concise, actionable instructions that reflect your repository and organization’s specific practices rather than general truisms. Good examples:
  • “Use event.id for idempotent event processing.”
  • “In customer-facing views, format dates with formatNorthstarDate and the account’s timezone.”
  • “Use Money for monetary values; avoid floating-point arithmetic.”
Avoid vague review instructions that do not give the reviewer factual guidance:
  • “Review API changes carefully.”
  • “Check for security and correctness issues.”
  • “Make sure database changes are safe.”

Excluded paths

You can configure custom path exclusion patterns to exclude specific files or directories from review. These patterns use glob syntax and are applied when processing pull requests. Common exclusion patterns include *.md to exclude all Markdown files at any depth, src/test/** to exclude all files under a specific directory from the repository root, and package-lock.json to exclude specific files. You can also exclude entire directories like node_modules/** or file types like *.generated.js. Exclusion Patterns

Select a bot account

For Azure DevOps repositories, code review comments need to be posted on behalf of an Azure DevOps user account. We recommend creating an Unblocked bot account for this specific purpose.
1

Create a bot account

  • In the Microsoft Entra admin center, go to Entra ID > Users.
  • Click New user, then select Create new user.
  • Create a new user with the following information:
    • Name: Unblocked
    • Avatar: download and use the Unblocked logo below Unblocked logo Download PNG
  • In Azure DevOps, sign in to your organization as a Project Collection Administrator.
  • Click Organization settings > Users, then click Add users.
  • Enter the bot user’s email address.
  • Set Access level to Basic.
  • Under Add to projects, select each project where Unblocked should review pull requests.
  • Set Azure DevOps Groups to Project Contributors.
  • Click Add.
2

Select your Bot Account

In Unblocked, search for the bot account you just created and select it. You may be required to authorize this account with Unblocked.
In order to successfully authorize your bot account, you need to be logged in with that account in Azure DevOps.
Select Bot