ADO Task and Github PR Creator
Create your standard pair of Azure DevOps tasks under a Product Backlog Item or Bug without leaving VS Code. Type the parent's number, pick the kind of tasks, and you're done.
What it does
Sign in once. The first time, VS Code asks you to sign in with your Microsoft work account — the same pop-up other Microsoft extensions use. No tokens to create. Then pick your organization from a list.
Enter the parent work item number — or pick it from your branches. If a repo in your workspace is on a branch that contains pbi<number> or bug<number>, that PBI or Bug is suggested, labelled with the repo it came from. The rest of the branch name can be in any order, for example:
| Branch |
Suggested |
feature/workstream/pbi123456 |
PBI 123456 |
feature/workstream/csr12345/bug654321 |
Bug 654321 |
csr12345/feature/workstream/bug654321 |
Bug 654321 |
csr12345/feature/workstream/pbi654321-2 |
PBI 654321 |
feature/workstream/bug-654321-fix |
Bug 654321 |
Other numbers such as csr12345 are ignored. You can always type any other number or paste a work item URL.
Pick the kind of tasks:
| Choice |
Task 1 (Activity) |
Task 2 (Activity) |
| Regular Dev Tasks |
… \| Dev Code Work and Unit Test (Development) |
… \| Dev Peer Review (Peer Review) |
| DBCR Tasks |
… \| Dev DBCR (DBCR) |
… \| Dev DBCR Peer Review (Peer Review) |
| Dev + DBCR Tasks |
all four of the above |
|
Titles follow this pattern:
PBI 123456 | Jane | Dev Code Work and Unit Test
- PBI / Defect: a Product Backlog Item parent becomes
PBI ###### and a Bug becomes Defect ######. Other types are rejected.
- Name is the first name of the signed-in user (
Doe, Jane ABC gives Jane). You can override it in settings.
- Each task inherits the parent's Area and Iteration, is assigned to you, and is linked as a child of the parent.
- Optionally, tasks whose title already exists under the parent can be skipped (off by default — see settings).
Commands
Click Create ADO Task/Github PR in the status bar (bottom of VS Code) for a menu with all of these (Sign Out appears once you're signed in), or open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
- ADO Task and Github PR Creator: Create Tasks for Work Item
- ADO Task and Github PR Creator: Copy PR Links for Work Item: copies the PR description links for a PBI or Bug (see below)
- ADO Task and Github PR Creator: Raise Pull Request: creates a GitHub pull request from your feature branch, description filled in (see below)
- ADO Task and Github PR Creator: Complete Peer Review Checklist: fills your team's peer review checklist, attaches it to the Peer Review task and marks the task Done (see below)
- ADO Task and Github PR Creator: Change Peer Review Checklist Template: pick a different checklist template file
- ADO Task and Github PR Creator: Sign In / Change Organization
- ADO Task and Github PR Creator: Sign Out (forgets the organization; remove the account itself from VS Code's Accounts menu)
PR links
After creating tasks, click Copy PR Links on the pop-up. Or, any time later, run Copy PR Links for Work Item and pick the PBI or Bug (your branch is suggested). This copies a block ready to paste into a GitHub pull request description:
PBI: [AB#123456](https://dev.azure.com/…/_workitems/edit/123456)
Unit Test: [AB#123457](https://dev.azure.com/…/_workitems/edit/123457)
Peer Review: [AB#123458](https://dev.azure.com/…/_workitems/edit/123458)
A Bug parent gets Bug: on the first line. Only the regular dev pair (Dev Code Work and Unit Test, Dev Peer Review) is included; DBCR tasks are never added. Tasks are found by their titles whoever they're assigned to; if more than one person has them under the same parent, yours are used. If the Unit Test or Peer Review task can't be found, its line is left out and you're told which one is missing. If neither exists, you're offered Create Tasks (the normal Create Tasks flow for that PBI or Bug) or Copy PBI Line Only.
Raise Pull Request
Works when a repo open in VS Code is on a branch that follows feature/<workstream>/…pbi###### or …bug######. The pull request goes from your branch into workstream/<workstream> or fixit/<workstream>, whichever exists on GitHub. If both exist, workstream/ is used. Other branches that only end in /<workstream> are ignored.
| Your branch |
Pull request into |
feature/doggy/bug654321 |
workstream/doggy (or fixit/doggy if that's the only one) |
csr12345/feature/doggy/pbi654321 |
same |
feature/doggy/csr12345/bug-654321-2 |
same |
- If several repos qualify, you pick one. If none do, you're told so and nothing happens.
- The repo's remote must be on GitHub, and
workstream/<workstream> or fixit/<workstream> must exist there. If your branch isn't pushed, or has unpushed commits, you're asked to push first.
- The description is the PR links block for the PBI or Bug. If it has no Unit Test or Peer Review task yet, you're asked whether to create Regular Dev Tasks: Yes creates and links them, No leaves the description blank.
- You see the branch, target, title and description, and click Create Pull Request. The extension creates it on GitHub directly, with no browser. The title is
PBI 654321 or Bug 654321, followed by | <repository label> for recognised repositories. A pop-up confirms it, with an Open on GitHub button. If a pull request is already open for your branch, you're shown that one and no duplicate is created.
The first time, VS Code asks you to sign in to GitHub (the same built-in sign-in other VS Code features use). If your repositories are on a company GitHub Enterprise server, VS Code's github-enterprise.uri setting is filled in for you. Some organizations require an admin to approve VS Code's GitHub sign-in first; if so, the extension tells you. Pushing uses VS Code's built-in Git, with the same login as pushing from VS Code.
Peer review checklist
- Enter the Peer Review task number. Its parent PBI or Bug is read from Azure DevOps.
- The first time, pick your team's checklist template (.xlsx). The extension saves its own private copy on your computer, so you can move or delete the original afterwards. To use a newer version of the checklist, run Change Peer Review Checklist Template. An already-filled checklist works as a template too (every row is cleared before filling).
- Enter the author's first name.
- Tick the categories that apply (all start unticked).
- The extension fills a copy of the checklist:
- Item being peer reviewed:
PBI 123456 or BUG 123456; Author: the name you entered; Peer Reviewer: your email.
- Every item in a ticked category: Completed YES, Count 0, Date today, Reviewer j.doe (from your name in Azure DevOps), Comment blank.
- Every item in other categories: Completed N/A, the rest blank. Total count of problems: 0.
- After you confirm, the file (named with the parent's number) is attached to the Peer Review task, the task is assigned to you and set to Done. Nothing is saved on your computer.
Branch suggestions
The extension reads the current branch of every Git repository open in VS Code (it uses VS Code's built-in Git support) and looks for pbi<number> or bug<number>. Other numbers in the branch, such as csr12345, are ignored. If the same number appears in several repos, they're listed together. The repo containing the file you have open is shown first.
The branch only suggests the number. Whether a work item is a PBI or a Bug is always read from Azure DevOps.
Want a keyboard shortcut? Open Keyboard Shortcuts (Ctrl+K Ctrl+S), search for "ADO Task and Github PR Creator", and assign any keys you like.
Settings
| Setting |
Default |
Description |
adoTaskCreator.firstNameOverride |
(empty) |
Name used in titles instead of your first name |
adoTaskCreator.tenantId |
(empty) |
Entra tenant ID or domain, if sign-in picks the wrong directory |
adoTaskCreator.confirmBeforeCreate |
true |
Show titles and confirm before creating |
adoTaskCreator.skipExistingTasks |
false |
Skip tasks whose title already exists under the parent |
adoTaskCreator.showStatusBarButton |
true |
Show the Create ADO Task/Github PR status bar button and its menu |
Requirements
- Your process must have an Activity field with the values
Development, Peer Review and DBCR.
- You need permission to create work items in the project.
Privacy
Sign-in is handled entirely by VS Code's built-in Microsoft account provider; the extension never sees your password. It talks only to dev.azure.com and app.vssps.visualstudio.com. Raise Pull Request uses VS Code's built-in Git and VS Code's built-in GitHub sign-in, and talks to GitHub's API to create the pull request; the extension never sees your GitHub password.