🤖 AI-powered code analysis and review for Azure DevOps pull requests
Get it on Azure DevOps Marketplace
🔄 Monthly Updates: The extension is updated monthly on the marketplace with new features and bug fixes.
Note: I'm not very experienced with TypeScript, but with the help of AI agents, building this extension became much easier! This project might contain some bugs, and I rely on community help to make it better. Feel free to open issues, submit PRs, or suggest improvements!
This Azure DevOps extension provides AI-powered code review and analysis for your pull requests. It uses Azure OpenAI to automatically analyze code changes and provide actionable feedback directly in your PRs.
| Feature | Description |
|---|---|
| 🔍 AI Code Review | Automated code quality analysis |
| 🚀 Improvement Suggestions | Performance optimization recommendations |
| 🧪 Test Generation | AI-generated test case suggestions |
| 📋 Compliance Check | Standards and documentation validation |
| 🔒 Security Scan | Vulnerability detection |
| ✅ Auto-Approval | Risk assessment for automated approval |
| 📝 PR Description | AI-generated PR descriptions |
Install from the Azure DevOps Marketplace.
- task: DevOpsPRAgentAnalyze@1
inputs:
analysisType: 'all'
env:
AZURE_OPENAI_ENDPOINT: $(AZURE_OPENAI_ENDPOINT)
AZURE_OPENAI_API_KEY: $(AZURE_OPENAI_API_KEY)
AZURE_DEVOPS_PAT: $(System.AccessToken)| Type | Description |
|---|---|
describe |
Overall recommendations and PR description |
review |
Code quality and maintainability |
compliance |
Standards and documentation |
auto-approve |
Risk assessment for automated approval |
ask |
Interactive Q&A analysis |
improve |
Performance optimization opportunities |
tests |
Test coverage and quality evaluation |
security |
Vulnerability detection |
all |
Run all analysis types (creates separate comments) |
| Variable | Description |
|---|---|
AZURE_OPENAI_ENDPOINT |
Your Azure OpenAI service endpoint |
AZURE_OPENAI_API_KEY |
Azure OpenAI API key |
AZURE_DEVOPS_PAT |
Azure DevOps Personal Access Token (use $(System.AccessToken) for pipeline) |
├── tasks/ # Pipeline task implementation (main logic)
├── src/ # Web extension source code
├── static/ # Static assets
└── documents/ # Documentation
npm install # Install dependencies
npm run build # Build the extension
npm run package # Create VSIX packageAll contributors are welcome! This is an open source, community-driven project and we'd love your help to make it better.
Whether you're fixing a typo, improving documentation, squashing bugs, or adding new features — every contribution matters! 🎉
- Fork the repository: github.com/Mohammad-AlRousan/Azure-DevOps-PR-Agent
- Create a feature branch:
git checkout -b my-feature - Commit your changes:
git commit -m "Add my feature" - Push to your fork:
git push origin my-feature - Open a Pull Request
- 🐛 Bug fixes — Found a bug? Fix it and submit a PR!
- 📝 Documentation — Help us improve guides and examples
- ✨ New features — Have an idea? Let's discuss it!
- 🧪 Testing — Help improve test coverage
- 🔧 Code quality — TypeScript improvements welcome
- 🌍 Translations — Help localize the extension
💡 First time contributing? Look for issues labeled
good first issue
| Document | Description |
|---|---|
| Azure OpenAI Setup | How to configure Azure OpenAI |
| Pipeline Task Guide | Pipeline integration guide |
| Publishing Guide | How to publish the extension |
| Extension Documentation | Full extension documentation |
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with help from AI coding assistants
- Powered by Azure OpenAI
- Thanks to all contributors!
Found a bug? Open an issue · Have a suggestion? Start a discussion · Want to contribute? Fork the repo