Say goodbye to browser tabs, manual PRs, and context switching.
If you're a developer using Azure DevOps and VS Code, chances are you've wished there was a smoother way to raise pull requests without jumping into the Azure portal every time.
Introducing Azure DevOps PR Helper β a free and open-source VS Code extension I created to automate and streamline PR creation right inside your code editor. With just a few prompts, this tool helps you:
β
Raise PRs
β
Link Work Items
β
Copy the PR URL
β
And do it all without leaving VS Code.
π GitHub Repository
π https://github.com/mrcreatist/azure-devops-pr-helper
π‘ Why I built this
At work, I often found myself repeating the same steps for every PR:
- Switch to browser
- Open Azure DevOps
- Navigate to the repo
- Find the right branch
- Fill in the details
- Link work items manually
This was unnecessarily slow β and letβs be honest β breaks the developer flow.
I realized that VS Code already knows the repo, branch, and more. So I built this extension to automate the grunt work and make the PR process frictionless.
π§ Key Features
π Secure PAT Handling
The extension securely stores your Azure DevOps Personal Access Token (PAT) using vscode.SecretStorage, so you only enter it once.
π± Auto-detects Repo & Branch
It uses Git CLI to automatically detect your repository and current branch, pre-filling the prompts to save time.
π€ Pull Request Creation
Raises a new PR using Azure DevOps REST API, with options to enter:
- Source branch
- Target branch
- PR title and description
π Work Item Linking
You can directly link one or more Work Item IDs while raising the PR β no separate step needed!
π Copy PR URL Instantly
After the PR is raised, you get an option to copy the PR URL to clipboard for quick sharing.
π Getting Started
- Clone the repo
- Run
npm install - Create an
org-config.tsfile like this:
export const orgConfig = {
orgHost: 'https://YOUR_ORG.visualstudio.com',
project: 'YOUR_PROJECT'
};
- Open in VS Code and launch the extension host
- Use the command palette:
-
Raise PRβ to start -
Copy Last PR URLβ to retrieve the latest PR link
π§ Behind the Scenes
- VS Code Extension API: For prompts, command registration, and secure storage
- Git CLI + child_process: For branch and repo detection
- Axios + Azure DevOps REST API: For PR creation and work item linking
- TypeScript: For type safety and readability
π SEO Tags
Azure DevOps, VS Code Extension, Raise PR from VS Code, Automate Azure DevOps Pull Request, Link Work Items DevOps, DevOps Developer Productivity Tools, Azure DevOps REST API PR, Secure PAT VS Code, GitHub Open Source Extensions, DevOps Workflow Automation
π¬ Whatβs next?
Iβm planning:
- Reviewer assignment support
- Default PR templates
- Auto-close linked work items
- Publishing to the official VS Code Marketplace
π Contribute
This project is open-source and built for developers, by a developer.
If you:
- Use Azure DevOps
- Want to speed up your PR process
- Love clean VS Code integrations
Then clone it, try it out, and feel free to fork, star βοΈ, or raise a PR:
π https://github.com/mrcreatist/azure-devops-pr-helper
βοΈ Author
Abhishek Verma
Software Developer | Builder of Useful Things | @axvrma
Top comments (0)