ADO Local Pre-release

Manual

Repos, pull requests and the Wiki

Review a pull request line by line, vote on it and complete it; browse a repository's files, history and branches and commit a change; read and write the Wiki; and search the code in every repository. None of it needs Git on your computer.

Find pull requests

Pull Requests in the sidebar lists pull requests across every Project you sync, in three lists along the top:

Pull Requests showing the To review list: three pull requests, each with its author, Project and repository, source and target branch, reviewers and age, one marked Conflicts
To review: each row says who opened it, where, from which branch into which, who's asked to review and how long ago. One with merge conflicts says so.

The button beside the lists, Group by repository, puts each repository's pull requests under its name; press it again for one list by date. New pull request starts one, and the refresh button reads the lists again from Azure DevOps.

Each repository has its own list too: open the repository under Repos in its Project, and choose Pull Requests. It has Active, Completed and Abandoned, the Flow of its pull requests, and filters for Any author, Any reviewer and Any target branch.

Click a pull request to open it. It opens on the tab you last used: Overview, Files or Commits, and Conflicts while the merge has conflicts.

Read a pull request

The header has the title and number, its status (Active, Draft, Completed or Abandoned), the source branch and the branch it goes into, who created it and when, and whether it can be merged. On the right are Vote, Complete… (or Publish for a draft), the … menu, and a button that opens it in Azure DevOps.

A pull request's Overview: the description and Discussion on the left; Reviewers, Policies and checks, Work Items and Tags on the right
The Overview: a required build has failed, and two required policies are still waiting.

The Overview tab has:

A pull request that's open is read again from Azure DevOps every 30 seconds, and the line at the bottom of the right-hand column says when it was last read. Commits lists its commits by push.

Review the files

Files shows what the pull request changes: the changed files as a tree on the left, and the file you've chosen on the right with its changes highlighted by language. The bar along the top chooses how it's shown.

The Files tab side by side: the tree of changed files on the left, the file before and after its changes on the right, and a comment thread folded between the lines
Side by side, with the changes only. A folded thread shows its status, its line and how many comments it has.

Within a changed line, the words that changed are underlined and shaded a little more, so a one-character change is easy to see. On the right of the bar, the count of threads by status (active, pending, resolved and so on) says how much discussion is left.

Move around

Drag the tree's right edge to widen it for long names, or use the arrow keys on it; a double-click or Enter on the edge puts it back. Rest the pointer on a file or folder to see its whole path beside it (move onto it to select and copy it). A file too large to show here says so, with Open on the website.

Keep your place

Tick a file as Viewed with the box on its row, or press v on it in the tree. The tick is for that version of the file: when a later update changes it, the tick goes and the file says New changes. Under the filter is how many of the files you've viewed, and Next unviewed (u) goes to the next one you haven't.

The file tree with two files ticked as viewed, 2 of 8 viewed under the filter, and one file marked New changes
Two files viewed; passkeys.ts changed again since it was ticked, so it says New changes.

When someone else's pull request has an update newer than the one you last voted on, or last opened on this computer, Files opens on just what's new since then, and says so in the bar. All changes beside it shows everything again. It stays that way while you go to Overview and back.

Files showing New since update 1, which you voted on, with All changes beside it, and the changed words underlined within a line
New since the update you voted on. The words that changed within a line are underlined.

Comment, reply and suggest

Comment on a line

  1. Rest the pointer on a line and click the small button at its left edge, or move to the line with the keys and press c. To comment on several lines, hold ⇧ while you click the last one, or while you press ↓ or ↑.
  2. Write the comment in Markdown. Type @ to mention someone and # to mention a Work Item, then choose from the list.
  3. Press ⌘↵, or the button under the box, to send it.

Comment on file, at the top right of the file, comments on the whole file rather than a line.

An Active thread on line 30 with three comments, a like, and Reply and Resolve beneath it, and a Pending thread on lines 26 to 32 below
Threads sit under the lines they're about. Each has its status, Reply and Resolve.

Reply and resolve

Reply answers a thread, and Resolve marks it resolved. The status beside the thread's line (Active, Pending, Resolved, Won't fix, Closed or By design) changes it to any of the others. The arrow at a thread's left folds it away. Like a comment with the thumb under it; edit or delete your own with the pencil and the bin.

Suggest a change

While you write a comment on lines of the new version, Suggest a change puts those lines in the comment as a suggestion. Change them to what you'd like them to be. The author sees the suggested change and can Apply it with one click, which puts it on the source branch and resolves the thread; anyone else sees The author can apply it.

A comment with a Suggested change showing the line removed and the line suggested, and Apply on its right
A suggestion on your own pull request: Apply commits it.
Tip

A comment, reply or edit you've written and not sent is kept on this computer until you send it or cancel it. Go to another file, another screen, or quit, and it's there when you come back; its file shows a pencil in the tree. If the pull request has been updated in the meantime, a new comment's box says its line was another update's, or offers it on the whole file when the line has gone.

Vote

Vote in the header has Approve, Approve with suggestions, Wait for author, Reject and Reset feedback. Your vote shows on the button and beside your name under Reviewers.

Complete a pull request

  1. Choose Complete… in the header.
  2. Pick the merge type. Only the ones the target branch's policy allows are offered: Merge (no fast forward), Squash commit, Rebase and fast-forward, or Semi-linear merge.
  3. Check the commit message. It starts with the pull request's title and its linked Work Items.
  4. Tick whether to delete the source branch and complete the linked Work Items after merging.
  5. Choose Complete merge.
The Complete dialog: the merge types the branch's policy allows, the commit message, ticks to delete the branch and complete the Work Items, and a warning that required policies aren't passing, with Set auto-complete
Required policies aren't passing yet, so the dialog offers to set auto-complete instead.

While required policies aren't passing, the dialog lists them and offers Set auto-complete…: the pull request then completes by itself, with the choices you made, as soon as they pass. Set auto-complete… and Cancel auto-complete are in the … menu too. If you're allowed to override the branch's policies, the dialog also has Override the branch's policies and complete, which asks for a reason.

The … menu

Create a pull request

  1. Choose New pull request in Pull Requests or in a repository's pull requests, or type new pull request in the command palette. From a comparison of two branches (Branches), the button fills them in.
  2. Pick the Project, repository, the branch to merge from and the branch it goes into. It says how many commits there are to merge.
  3. Write the title and description. The description starts from the repository's pull request template when it has one.
  4. Add reviewers, and the Work Items to link: those mentioned in the branch's commits are suggested.
  5. Tick Create as a draft if reviewers shouldn't be asked until you publish it, then choose Create.
The New pull request dialog: Project, Repository, Merge from and Into, a title, a description from the repository's template, Reviewers, two suggested Work Items, and Create as a draft
A new pull request, its description from the repository's template and its Work Items suggested from the branch's commits.

Resolve merge conflicts

When the source and target branches change the same lines, the header says Merge conflicts and the Conflicts tab lists each file with its kind (edit/edit, delete/edit, add/add and so on) and both branches' changes. You can resolve them here, without a checkout.

  1. Choose a file in the list.
  2. Take one side with Take source or Take target, or choose Edit merged… to write the result yourself.
  3. In the merged version, each place the branches overlap starts with conflict markers. Use Source, Target or Both for each place, or edit the text. The base, target and source versions are beside it to compare. Start again goes back to both branches' changes.
  4. Choose Save merged version.
The Conflicts tab: three conflicting files on the left; on the right the base version beside the merged version, with one place still marked and Source, Target and Both to choose for it
Editing the merged version of an edit/edit conflict. One place is still marked.

A binary or very large file takes one side or the other. Until the merge is tried again you can undo a resolution. Azure DevOps tries the merge again once every file is resolved, or when you choose Try the merge again; then Complete… is available as usual. What you save is kept in Azure DevOps as how the file is resolved; the target branch changes only when the pull request is completed.

Permissions

Resolving conflicts needs permission to contribute to the repository's pull requests. Without it, the tab shows the conflicts and says why you can't resolve them, with Open on the website.

Cherry-pick and revert

A completed pull request's … menu has Cherry-pick… and Revert….

The Cherry-pick dialog: Onto a release branch, and the name of the new branch
Cherry-pick a completed pull request onto a release branch.

The new branch's name is offered free of the ones the repository already has. Azure DevOps makes the branch, which can take a moment; the dialog stays until it has. New pull request then opens for it, filled in. If you close that, the branch is still there in Branches for later. If the changes conflict with the branch, it says so and offers the website: that's for a checkout to resolve.

See how pull requests flow

A repository's pull requests have Flow beside Active, Completed and Abandoned. It shows how its pull requests move, over the last 14, 30 or 90 days.

Flow for a repository: a sentence summing up, figures for Completed, Typically took, Most within and Open now, the open pull requests the longest first with what each waits for, and the slowest to complete
Flow over the last 30 days: what's open, the longest first, and what each one waits for.

It goes by reviewers' votes and the merge: a policy that isn't a reviewer, such as a build, isn't looked at, and the author's own vote doesn't count. It's worked out from the repository's lists as the app keeps them, so it's there offline, and says how things stood when they were read. Only the newest 100 completed and 200 open pull requests are read; it says "at least" when there may be more.

Personal Access Token

Pull requests need Code (Read) to read, and Code (Read & write) to vote, comment, complete or resolve conflicts. Cherry-pick and Revert need Code (Read, write & manage) and permission to create branches in the repository. Changing a pull request needs a connection: offline, the actions are off and say why.

Browse a repository

Each Project in the sidebar has Repos, which lists its repositories. Choose one to open it. Along the top are Files, Commits, Branches, Tags and Pull Requests, the branch, tag or commit you're looking at, and a box to search the repository's code.

Files

Files shows the repository at any branch, tag or commit: choose it from the menu beside the tabs, where you can also find a branch or tag by name or paste a commit ID. The path along the top goes back up to any folder. Files are highlighted by language, and Markdown files, such as a README, are shown rendered.

A TypeScript file in a repository on main, highlighted, with its last commit above it and Contents, Blame, Edit and other buttons
A file at main, with the commit that last changed it.
Blame: each line of the file with the author, date and commit message that last changed it
Blame: who last changed each line, and why.
Find a file: setscr typed, and SettingsScreen.tsx found with its folder
Press t and type a few letters of the name.

Edit a file and commit it

  1. Open a text file at a branch and choose Edit.
  2. Make your changes, then choose Commit….
  3. Write the commit message, and choose whether to commit to the branch or to a new branch. A new branch can come with a pull request into the branch you started from: tick Create a pull request.
  4. Choose Commit.
The Commit dialog: a message, Commit to main turned off because main has required policies, Commit to a new branch chosen, and Create a pull request into main ticked
main has required policies, so the change goes to a new branch with a pull request.

A branch whose policies require pull requests can't be committed to directly; the dialog says so and offers a new branch instead.

Commits

Commits lists the branch's commits, the newest first. Filter them by Author, by a date From and To, and by path (from a file's or folder's history). A commit opens with its changed files and diffs, shown as in a pull request (just the changes or the whole file, the words that changed, Ignore whitespace and ⌘F), and the Work Items linked to it.

Commits on main, each with its message, author, date and short ID, under filters for Author, From and To
The commits on main.

Branches

Branches lists Mine (the ones you made, or where you made the last commit, marked with a star) or All, each with its last commit and how far it is behind and ahead of the default branch. A branch with an open pull request shows its number. New branch makes one from a branch, tag or commit, optionally linked to a Work Item; the bin deletes one, after asking. Enter on a branch, or a click, browses its files.

Branches: each branch with its last commit, and bars for how many commits it's behind and ahead of main, with compare and delete buttons
How far each branch is behind and ahead of main.

The compare button on a branch compares it with the default branch. Choose either branch from its menu, or swap them. The comparison has the Files that differ and the Commits between them, and New pull request starts a pull request from the one into the other.

Comparing feature/dark-mode with main: 2 ahead, 3 behind, the two changed files, a diff, and New pull request
A comparison, ready to become a pull request.

Tags

Tags lists the repository's tags. New tag makes one on a branch or commit, with a name (such as v1.5) and an optional message saying what it marks. A tag can be deleted from its row, after asking. Choosing a tag opens the repository's files at that version.

Read the Wiki

Each Project's Wiki in the sidebar opens its wiki. When a Project has more than one (its Project wiki and wikis published from code), the menu beside Wiki at the top switches between them. A Project without a wiki can make its Project wiki here.

A wiki's Home page: the page tree on the left; the page with its contents, a table with mentions and a Work Item link, and a Mermaid diagram
A page with its contents, a table, mentions, a Work Item link and a diagram.

The page tree is on the left; a page with pages under it opens out with its arrow. Pages show as they do on the website: tables, task lists, a table of contents where the page has [[_TOC_]], Mermaid diagrams, images and videos, mentions of people, and links to other pages and to Work Items. A Work Item link opens the Work Item here. Under the title is who last edited the page, when, and how many times it's been viewed lately.

Search the wiki at the top finds pages by their words. Pages you've read are kept on this computer, so they're there offline, marked as possibly out of date.

A Wiki link on a Work Item opens the page here too.

Write the Wiki

  1. Choose Edit on a page, or press e.
  2. Write in Markdown. The toolbar adds bold, italics, headings, links, code, lists, task lists and tables; the last button attaches an image or file, or paste or drop one into the text.
  3. Choose Write, Side by side or Preview to see the text, the text beside how it will look, or just how it will look.
  4. Choose Save. Until then it says Not saved, and Cancel asks before throwing your changes away.
Editing a wiki page side by side: the Markdown on the left and the preview on the right, with the toolbar, Write, Side by side and Preview, Cancel and Save
Editing side by side: the Markdown and how it will look.

New page at the top makes a page. A page's … menu has New page under this one…, Rename…, Move to… (the pages under it move with it), Copy link, Copy ADO Local link and Delete….

If someone else saved the page while you were editing it, their version and yours show side by side. Keep mine saves yours over theirs, Take theirs loses your changes, and Copy my text copies what you wrote first.

Needs a connection

Wiki changes are saved straight to Azure DevOps, so editing, and making, moving and deleting pages, need a connection. They don't wait to be sent. A Personal Access Token needs Wiki (Read & write).

A page's history

History on a page lists every version: its message, who saved it and when. Choose one to see what it changed, Inline or Side by side, compared with the version before it or another you pick under Compared with. Back to the page returns to it.

History of a wiki page: three versions on the left, and the newest one's changes against the version before, inline
What the newest version of a page changed.

Search, in the sidebar or with /, has a Code tab beside Work Items. It uses Azure DevOps' Code Search to look in the default branch of every repository in the Projects you sync.

Code search for settings: results by file, each with its repository, path, Project, branch and number of matches, and the matching lines highlighted
Results by file, with the matched lines and how many matches each file has.

Type words to find, and narrow them with Azure DevOps' syntax:

TypeTo find
"open settings"an exact phrase
ext:tsfiles with this extension
file:*.mdfile names, with * and ?
path:/src/settingsfiles under a folder (with one repository)
repo:contoso-appone repository
proj:"Contoso Mobile"one Project
def:loadSettingswhere something is defined
class:Settingsa class
a AND b, a OR b, NOT ccombine words

The Project, Repository, Path and File type buttons under the box add the same filters without typing them; Clear filters takes them all away. With nothing typed, the Code tab lists this syntax and your recent searches.

Code search for settings ext:tsx, with File type .tsx chosen and Clear filters beside it
A File type filter: the same as typing ext:tsx.

↑ and ↓ move between files, and Enter opens the file at its first match; a line clicked opens the file at that line. Results come 25 files at a time, with Load more. A file with more matches than are shown says so: open it to see them all.

In a repository, the search box at the top searches just that repository: press Enter and Search's Code tab opens with the words and the repository's filters.

Needs a connection

Code search asks Azure DevOps each time, and results aren't kept on this computer. It needs the Code Search extension in the organization: without it there's no Code tab or repository search box. A repository that's still being indexed says Still indexing; try again later. A Personal Access Token needs Code (Read).