Azure DevOps PR Manager
A Visual Studio Code extension for managing Azure DevOps pull requests and monitoring pipeline status directly from your editor.
Features
- View Pull Requests: Browse all active pull requests in a tree view
- Create Pull Requests: Create new PRs with source and target branch selection
- Pipeline Status: Monitor pipeline runs associated with each pull request
- Detailed PR View: View comprehensive PR details including description, metadata, and pipeline status
- Quick Actions: Open PRs in browser, refresh list, and more
Prerequisites
- Visual Studio Code 1.85.0 or higher
- Azure DevOps account with access to your organization
- Personal Access Token (PAT) with the following permissions:
- Code: Read & Write
- Build: Read
Installation
From Source
- Clone this repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press F5 in VS Code to open a new window with the extension loaded
Creating a VSIX Package
npm install -g vsce
vsce package
Then install the .vsix file in VS Code.
Configuration
Setting up Azure DevOps Connection
- Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run "Azure DevOps: Configure Connection"
- Enter the following information:
- Personal Access Token: Your PAT with appropriate permissions
Creating a Personal Access Token
- Go to Azure DevOps
- Click on your profile icon → Security → Personal access tokens
- Click "New Token"
- Give it a name and set expiration
- Select the following scopes:
- Code: Read & Write
- Build: Read
- Copy the generated token
Usage
Viewing Pull Requests
- Open the Azure DevOps view in the Activity Bar
- The "Pull Requests" section shows all active PRs
- Click on a PR to view details
- Expand a PR to see associated pipeline runs
Creating a Pull Request
- Click the "+" icon in the Pull Requests view title bar
- Or run "Azure DevOps: Create Pull Request" from the Command Palette
- Select source and target branches
- Enter a title and optional description
- The PR will be created and appear in the list
Pipeline Status
- Pipeline runs are shown under each PR in the tree view
- Pipeline status is color-coded:
- Green: Succeeded
- Red: Failed
- Yellow: In Progress
- Orange: Partially Succeeded
- Gray: Canceled
- Click on a pipeline to open it in your browser
Commands
Azure DevOps: Configure Connection - Set up your Azure DevOps connection
Azure DevOps: Refresh Pull Requests - Refresh the PR list
Azure DevOps: Create Pull Request - Create a new pull request
Azure DevOps: View Pull Request Details - View detailed PR information
Azure DevOps: Open Pull Request in Browser - Open PR in Azure DevOps web interface
Future Enhancements
- [ ] PR review and comment functionality
- [ ] Approve/reject PRs from VS Code
| |