azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Add subcommand for `az repos pr` to list/add/delete tags

Open celluj34 opened this issue 3 years ago • 7 comments

Related command az repos pr

Is your feature request related to a problem? Please describe. I want to use the az cli in my CI/CD pipeline to read tags, but I have to use the REST api instead. It would be great if I could read the tags directly

Describe the solution you'd like az repos pr tags <command> --id 2582 --detect true, where command is list, add, and delete, and (for add and delete) takes an additional parameter which is the string of the tag to manipulate.

Describe alternatives you've considered I can currently list tags from the REST api, but that is cumbersome and not ideal when I can do other operations directly in the cli.

Additional context none

celluj34 avatar Aug 22 '22 19:08 celluj34

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Aug 22 '22 23:08 ghost

route to CXP team

yonzhan avatar Aug 22 '22 23:08 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist, @V-hmusukula.

Issue Details

Related command az repos pr

Is your feature request related to a problem? Please describe. I want to use the az cli in my CI/CD pipeline to read tags, but I have to use the REST api instead. It would be great if I could read the tags directly

Describe the solution you'd like az repos pr tags <command> --id 2582 --detect true, where command is list, add, and delete, and (for add and delete) takes an additional parameter which is the string of the tag to manipulate.

Describe alternatives you've considered I can currently list tags from the REST api, but that is cumbersome and not ideal when I can do other operations directly in the cli.

Additional context none

Author: celluj34
Assignees: -
Labels:

Service Attention, customer-reported, DevOps

Milestone: -

ghost avatar Aug 23 '22 06:08 ghost

@celluj34 Adding Service team for devops issues.

@v-anvashist, @V-hmusukula. Could you please look into this and provide an update ?

navba-MSFT avatar Aug 23 '22 06:08 navba-MSFT

Hello;

Has there been any updates on this?

celluj34 avatar Sep 23 '22 06:09 celluj34

@celluj34 We are currently working on some high priority bugs This is feature request as currently we don't have this support in CLI service. https://learn.microsoft.com/en-us/cli/azure/repos/pr?view=azure-cli-latest#az-repos-pr-list

We need to work with API team. In CLI service we are only consuming the API's.

Could you please share the API details on it?

Thanks, Anjali

v-anvashist avatar Sep 23 '22 06:09 v-anvashist

Here's a similar bug I have for the CLI (which you are tagged on also): https://github.com/Azure/azure-cli/issues/23626#issuecomment-1229777435

But I am using the REST API like so: https://dev.azure.com/<company>/<project>/_apis/git/repositories/<repo>/pullRequests/<pull_request_id>/labels, then parsing the JSON into a powershell object and doing other work.

celluj34 avatar Sep 23 '22 15:09 celluj34