Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
617 stars 239 forks source link

[Feature Request] Return file changes while creating/showing a pull request #1267

Open nimbusparis opened 2 years ago

nimbusparis commented 2 years ago

When creating a pull request using az repos pr create, the json returned don't give the count of file changed in the PR. It would be usefull to automatically cancel the PR if there are not changes. The command can use this route: https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-commits/get-pull-request-commits?view=azure-devops-rest-5.1#gitcommitref