Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
381 stars 1.2k forks source link

az pipelines list with --source-branch comes out empty #2843

Open EugenMayer opened 3 years ago

EugenMayer commented 3 years ago

Extension name (the extension in question)

azure-devops

azure-cli                         2.16.0

core                              2.16.0
telemetry                          1.0.6

Extensions:
azure-devops                      0.18.0

Description of issue (in as much detail as possible)

when using something like this

az pipelines release list --definition-id=9 --source-branch 'master' -o table
# or 
az pipelines release list --definition-id=9 --source-branch 'stable/8.12' -o table

The result of the releases always comes empty

EugenMayer commented 3 years ago

After using show and checking the meta-data i realized, that the branch should be given in ref form, thus the above is working right when using

az pipelines release list --definition-id=9 --source-branch 'refs/heads/master' -o table
#or 
az pipelines release list --definition-id=9 --source-branch 'refs/heads/stable/8.12' -o table

If it is just be being unsure about the syntax while it is crystal clear for all others, this issue can be closed. Otherwise we might add some example to the cli docs / --help like refs/heads/master or what ever suits best

yonzhan commented 3 years ago

pipelines