PR Pilot for Azure DevOps
AI-assisted Azure DevOps pull request creation from VS Code.
Features
PR Pilot (Single PR)
Create a single pull request from your local git workspace with AI-generated title and description.
- Select repo from workspace folders or browse
- Pick source/target branches with conflict detection
- PR type: Normal / Draft / Auto-Complete
- AI-generated title via VS Code Copilot LM API
- AI-generated structured description (impact, summary, change impact, review areas, deployment checklist)
- Work item linking, reviewer resolution, Teams notifications
- Auto-post AI summary as PR comment thread
Bulk PRs
Create multiple pull requests across remote branches in one batch, with or without AI.
- Select an ADO repo from the configured project
- Queue multiple source→target branch pairs interactively
- Optional AI — toggle on/off at the start via QuickPick
- AI generates titles and descriptions for all queued PRs in parallel (no waiting after each entry)
- AI summary based on ADO REST diff between branches (no local checkout needed)
- Fallback: if AI is off or fails, uses user-entered titles and no description
- Status bar shows live progress:
AI: 2/5, Creating: 3/5, Bulk PRs — 4 created
- Clickable success notification with per-PR open links
- Press
ESC at any step (including Add more?) to cancel the entire bulk process; queued PRs are not created
Commands
| Command |
Description |
PR Pilot: Create Pull Request |
Single PR with AI wizard |
PR Pilot: Create Bulk PRs |
Batch PR creation with optional AI |
PR Pilot: Configure |
Set organization, project, PAT, Teams webhook |
PR Pilot: Send Test Teams Notification |
Test Teams integration |
PR Pilot: Test Reviewers |
Validate reviewer identity resolution |
PR Pilot: Refresh My Active PRs |
Refresh the My Active PRs view |
PR Pilot: Refresh PRs I'm Reviewing |
Refresh the PRs I'm Reviewing view |
PR Pilot: Browse in ADO |
Open a PR in Azure DevOps |
Configuration
| Setting |
Description |
prPilot.organization |
Azure DevOps organization URL |
prPilot.project |
Azure DevOps project name |
prPilot.currentUserEmail |
Email for filtering "My Active PRs" |
prPilot.teamsWebhookUrl |
Teams Incoming Webhook URL |
prPilot.teamsChannelUrl |
Teams channel deep link for cards |
prPilot.teamsReminderDelayHours |
Hours before PR reminder (default 24) |
prPilot.defaultReviewers |
Default reviewer emails or ADO team names |
prPilot.autoPostComments |
Auto-post AI summary as PR comment |
prPilot.priorityBranches |
Branches shown at top of target picker |
PAT is stored in VS Code Secret Storage (never in settings).
Requirements
- VS Code 1.85+
- Python 3.10+ (used by the bundled Azure DevOps helper)
- GitHub Copilot subscription (for AI summaries)
- Azure DevOps PAT with Code (Read & Write) and Pull Requests (Read & Write) scopes
Development
npm install
npm run compile # TypeScript → out/
npm test # compile + run test suite
npx vsce package # package as .vsix
Testing
Runs on the native Node.js test runner — no framework dependencies.
npm test
Tests live in tests/all.test.cjs with shared mocks in tests/testUtils.cjs.
| |