Azure DevOps - Useful tips
Introduction
Here you’ll find tips to manage your Azure DevOps repositories from the CLI.
Azure Pull Requests
Open a Pull Request
Once all files are committed and commits are pushed, launch the following command:
The command will return an JSON payload response with all the information regarding the newly created Pull Request. There, you can check some useful information like the PR ID (you’ll need it later), description, status, etc…
Vote a Pull Request
If the policies applied to the PRs require them to be voted, you can also do it from the CLI:
Azure DevOps - PR voting
Choose the vote you see fit for the Pull Request current status.
Complete a Pull Request (merge changes)
Once reviewed the changes and accepted, you can complete the PR by updating its status with the following command:
Azure DevOps - Complete a PR
Choosing completed
will automatically start the merging process to the target branch.