AI-Assisted Code Review for Azure DevOps
Elevate Your Code Review Process with AI
Welcome to the AI-Assisted Code Review DevOps Extension! Revolutionize your development process by integrating OpenAI’s cutting-edge language models into your Azure DevOps pipeline. Transform your code reviews into a smart, efficient, and insightful process.
Start Improving Your Code Reviews Today
Supercharge your workflow with AI-powered code reviews. Install the extension now and unlock intelligent, actionable insights for every code change. Embrace the future of code reviews with ease!
Why Use AI-Assisted Code Review?
- Automated Code Analysis: Eliminate manual inspections with AI-driven analysis that detects bugs, performance issues, and suggests best practices automatically.
- Simple Installation: Get started quickly with a one-click installation from the Azure DevOps Marketplace.
- Intelligent Insights: Harness advanced natural language processing to receive meaningful feedback on your pull requests.
- Accelerated Review Cycles: Save time by letting AI handle routine reviews, so your team can focus on what truly matters.
- Customizable Settings: Adapt the extension to your needs by configuring the AI model, file exclusions, and additional review prompts.
Prerequisites
Getting started
Install the AI Assisted Code Review DevOps Extension.
Add AI Assisted Code Review Task to Your Pipeline:
trigger:
branches:
exclude:
- '*'
pr:
branches:
include:
- '*'
jobs:
- job: CodeReview
pool:
vmImage: 'ubuntu-latest'
steps:
- task: AIAssistedCodeReviewTask@1
inputs:
api_key: $(OpenAI_ApiKey)
ai_model: 'gpt-3.5-turbo'
bugs: true
performance: true
best_practices: true
file_extensions: '.js,.ts,.css,.html'
file_excludes: 'file1.js,file2.py,secret.txt'
additional_prompts: 'Fix variable naming, Ensure consistent indentation, Review error handling approach'`
If you do not already have Build Validation configured for your branch already add Build validation to your branch policy to trigger the code review when a Pull Request is created
FAQ
Q: What agent job settings are required?
A: Ensure that "Allow scripts to access OAuth token" is enabled as part of the agent job. Follow the documentation for more details.
Q: What permissions are required for Build Administrators?
A: Build Administrators must be given "Contribute to pull requests" access. Check this Stack Overflow answer for guidance on setting up permissions.
Bug Reports
If you find a bug or unexpected behavior, please open a bug report.
Feature Requests
If you have ideas for new features or enhancements, please submit a feature request.
Learn More
Visit our GitHub repository for additional documentation, updates, and support.