Azure DevOps Pull Request Notifier
Get instant notifications in VS Code for all your pull request activities - from creation to approval, comments, and completion!
Features
- 🎉 PR Creation: Get notified when you create a new pull request
- ✅ Approvals: Instant alerts when reviewers approve your changes
- ❌ Rejections: Know immediately when changes are requested
- 💬 Comments: Be notified of new comments on your PRs
- 🎊 Completion: Celebrate when your PR is merged!
- 🔗 Quick Access: Click notifications to jump directly to the PR in Azure DevOps
- ⚙️ Customizable: Control which notifications you want to receive
- 🎯 Personal: Only tracks PRs you created
Notification Examples
Pull Request Created
🎉 Pull Request Created: Add new feature to dashboard
[View PR] [Dismiss]
Reviewer Approved
✅ PR Approved by John Doe: Add new feature to dashboard
[View PR] [Dismiss]
Changes Rejected
❌ Changes Rejected by Jane Smith: Add new feature to dashboard
[View PR] [Dismiss]
💬 3 new comments on PR: Add new feature to dashboard
[View Comments] [Dismiss]
PR Completed
🎊 Pull Request Completed: Add new feature to dashboard
[View PR] [Dismiss]
Setup
1. Install the Extension
Install this extension from the VS Code marketplace or VSIX file.
Open VS Code Settings (Ctrl+, or Cmd+,) and search for "Pull Request Notifier":
Required:
- ADO Organization URL: Your Azure DevOps organization (e.g.,
https://dev.azure.com/yourorg)
- ADO Project Name: Your project name
- ADO User Email: Your Azure DevOps email address
- ADO Personal Access Token (PAT): Your PAT with Code (Read) permissions
Optional:
- Notify on Approval: Get alerts when reviewers approve (default: true)
- Notify on Comments: Get alerts for new comments (default: true)
- Notify on Rejection: Get alerts when changes requested (default: true)
3. Create a Personal Access Token
- Go to Azure DevOps → User Settings → Personal Access Tokens
- Click "New Token"
- Set name (e.g., "VS Code PR Notifier")
- Select scopes:
- Copy the token and paste it in VS Code settings
Usage
Manual Control
Use the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
Start Azure DevOps Pull Request Monitoring - Begin monitoring
Stop Azure DevOps Pull Request Monitoring - Stop monitoring
Auto-start
By default, monitoring starts automatically when VS Code launches. Disable this in settings if you prefer manual control.
Configuration
| Setting |
Description |
Default |
pullrequestNotifier.adoOrg |
Azure DevOps Organization URL |
- |
pullrequestNotifier.adoProject |
Project name |
- |
pullrequestNotifier.adoUserEmail |
Your email address |
- |
pullrequestNotifier.adoPat |
Personal Access Token |
- |
pullrequestNotifier.pollingInterval |
Check interval in milliseconds |
20000 |
pullrequestNotifier.autoStart |
Auto-start on launch |
true |
pullrequestNotifier.notifyOnApproval |
Notify on approvals |
true |
pullrequestNotifier.notifyOnComments |
Notify on new comments |
true |
pullrequestNotifier.notifyOnRejection |
Notify on rejections |
true |
How It Works
- Polling: Checks Azure DevOps Git API every 20 seconds (configurable)
- Multi-Repository: Scans all repositories in your project
- Activity Tracking: Monitors:
- Pull request creation
- Reviewer vote changes (approved, rejected, waiting for author)
- New comment threads
- PR completion or abandonment
- Smart Filtering: Only tracks PRs you created in the last 30 days
- Change Detection: Uses vote comparison and comment counting to detect new activities
- Auto-Cleanup: Removes completed PRs after 7 days
Activity Types
Reviewer Votes
- 10: ✅ Approved
- 5: ✅ Approved with suggestions
- 0: ⚪ No vote
- -5: ⚠️ Waiting for author
- -10: ❌ Rejected
PR States
- Active: 🟢 PR is open and under review
- Completed: 🎊 PR has been merged
- Abandoned: 🚫 PR was closed without merging
Troubleshooting
No notifications appearing?
- Verify your Azure DevOps credentials are correct
- Check that your PAT has Code (Read) permissions
- Ensure PRs exist that you created (in last 30 days)
- Check VS Code Developer Tools console for errors (
Help → Toggle Developer Tools)
Too many/few notifications?
Adjust polling interval:
- Faster: 10000 (10 seconds)
- Slower: 30000 (30 seconds)
Disable specific notifications:
- Turn off approval notifications in settings
- Turn off comment notifications in settings
- Turn off rejection notifications in settings
Missing some PRs?
The extension tracks PRs created in the last 30 days. Older PRs won't be monitored.
Privacy & Security
- Your PAT is stored in VS Code's secure settings
- All API calls go directly to Azure DevOps (no third-party servers)
- Only tracks PRs you created
- No data is collected or transmitted elsewhere
API Efficiency:
- Batches repository queries to minimize API calls
- Caches user ID to avoid repeated lookups
- Implements smart cleanup to prevent memory bloat
Recommended Settings:
- Polling interval: 20000ms (20 seconds) for active development
- Increase to 60000ms (60 seconds) if working on fewer PRs
License
MIT License - see LICENSE file for details
Credits
Built with inspiration from the ADO Tasks Notifier and ADO Pipeline Notifier extensions.
Support
Found a bug or have a feature request? Open an issue on GitHub!
Happy Collaborating! 🎉