Azure DevOps
Signed in to Azure DevOps, you can review and complete pull requests in Commitline: read their files and comments, reply, vote, and merge.
To sign in, see Accounts and hosts.
Your branch's pull request
In the Git view, the Azure DevOps row shows your branch's pull request:
- its state: active, draft, completed or abandoned;
- its number and title, with Open in Azure DevOps;
- its builds and policies, worst first: failed, running, queued, passed, neutral.
Under it, My work items opens your work items; see Work items.
Signed out, the row says to sign in in Settings › Accounts and hosts.
The repository's pull requests
Pull requests, in the Repository view, lists up to 20 active pull requests, the most recently updated first.
Each one notes its failing checks, its reviews, or that it's a draft.
- Choose one to open it in Commitline.
- Right-click it for Switch to branch, Open in browser and Copy link.
A pull request also opens from Needs you on the Dashboard, from a commit's pull request card, and from a !12 chip.
A pull request in Commitline
At the top: its state, number and title, who wants to merge which branch into which, how many commits, and when it was opened.
It has five tabs:
| Tab | Shows |
|---|---|
| Overview | The description, then the comment threads. |
| Files | The files of the latest push. With the repository open and both commits fetched, the diffs come from your own Git. |
| Updates | Each push, newest first, with who pushed it and when. |
| Commits | Up to 250 commits; with the repository open, choose one to see it in History. |
| Conflicts | The files that conflict with the target branch. |
When a commit the Files tab needs isn't on your computer yet, it offers Fetch.
Comments
- Threads are listed oldest first, with where they are, such as a file and line.
Go to line shows that line in Files. - Reply answers a thread, in Markdown.
- Resolve and Reactivate change a thread's state.
Resolved threads fold up to their first comment.
You can reply to threads, but not start a new one yet; do that on Azure DevOps.
Vote
At the foot of the page, Approve votes, and More votes offers Approve with suggestions, Wait for author, Reject and Reset vote.
Votes and comments go to Azure DevOps as you.
Voting adds you as a reviewer when you aren't one yet.
On a pull request set to complete by itself, Commitline asks before an approval or a last resolved thread that could merge it at once.
The Pull request view
On the right, the Pull request view shows:
- Reviewers, with each one's vote, and which are required.
Add reviewer finds a person or group by name or email, and adds them as optional. - Policies, with each one's state, and how many of the required ones passed.
- Builds, with their time and number.
- Work items linked to the pull request.
Complete a pull request
Complete, at the end of the Pull request view, merges an active pull request:
- Choose a Merge type: Merge, no fast-forward, Squash commit, Rebase and fast-forward or Semi-linear merge.
Types the branch policy doesn't allow are off. - Check the Commit message, which starts as Merged PR with its number and title.
- Choose what happens after:
- Complete linked work items after merging, on at first;
- Delete the source branch, on at first;
- Pull the target branch here after the merge, when your folder is on that branch.
- Choose Complete merge, and confirm.
While a required policy fails, Commitline says which one blocks completion, and holds Complete merge.
It never bypasses a policy.
Instead of completing now:
- Set auto-complete has Azure DevOps merge it by itself once its policies pass.
Cancel auto-complete stops that. - Abandon closes it without merging.
It can be reactivated on Azure DevOps.
Across your repositories
On the Dashboard, each repository's Pull request, Checks and Open columns show its pull requests.
A pull request nobody has approved or turned down yet shows as Review !12, and its repository joins Waiting for review.
Needs you, in Across repositories, lists up to 100 pull requests that ask you for a review.
A request to a group you're in doesn't show there.
Open a pull request
In History, drag your branch's chip onto the branch it should merge into, then choose Open a pull request into that branch.
Azure DevOps' new pull request page opens in your browser.
Push your branch first.
Links and chips
Commitline recognises Azure DevOps work items in commit messages:
- links to a work item's page;
#42andAB#42, in a repository on Azure DevOps.
Signed in, each becomes a chip with its type, number, title and state.
Point at a chip to see its card, with Create a branch; see Work items.
Limits
- One organization at a time.
- You can't publish a draft, start a comment thread, or reactivate an abandoned pull request in Commitline yet; do that on Azure DevOps.
- When Azure DevOps limits your requests, Commitline says so: try again later.