VS Code Extensions
AI PR Review

AI PR Review

by GiorgosPanagiotopoulos

AI-powered pull-request review: sends the PR diff and resolved rules to an Azure OpenAI reasoning deployment and posts inline findings back to the PR.

Downloads

1

Rating

(0)

Version

1.1.2

Last updated

Jul 17, 2026

Reviews the current pull request with an Azure OpenAI reasoning deployment and posts inline findings back to the PR. Add one task step to a Build Validation pipeline — no engine repository resource, no template extends.

What it does

On a PR build the task runs five stages in-process:

  1. Computes the PR diff (base = HEAD^1).
  2. Skips if this HEAD was already reviewed (SHA dedup).
  3. Grep-resolves connected neighbour files for extra context.
  4. Sends the diff + changed files + connected files + the resolved rule set to Azure OpenAI.
  5. Posts findings as inline PR threads and sets a PR status (failed on any CRITICAL).

It is a clean no-op on non-PR builds. Repo-specific rules live in <repo>/.ai-review/ (rules.yaml + REVIEW_RULES.md); a repo with no overlay still gets the stack-neutral security floor.

Usage

steps:
  - checkout: self
    fetchDepth: 2
    persistCredentials: true

  - task: AIPRReview@1
    inputs:
      aoaiConnection: 'AzureOpenAI-PRReview'

Create an Azure OpenAI PR Review service connection (endpoint URL + API key) and grant the Build Service Contribute to pull requests on the repo. See the repository README for full setup.

Related extensions