Skip to content

az repos pr show not including tags/labels #23626

@celluj34

Description

@celluj34

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az repos pr show --id 2582 --detect true

Describe the bug
Tags (or, as they are defined in the documentation, Labels) are not being returned in the above command. They are being returned from the REST api at .../_apis/git/repositories/<repository>/pullRequests/<pr id>/labels

To Reproduce

  1. Create a pull request in Azure DevOps
  2. Add a tag. The specific text doesn't matter.
  3. Run the above command to show the details

Expected behavior
I expect the JSON response to contain any and all tags I've added to the PR.

Environment summary
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions