Azure / Azure/azure-devops-cli-extension

Add a label parameter when creating pull requests

Open
#1,357 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**Describe the solution you'd like**
A parameter to add labels to a pull request when creating it with the `az repos pr create` command.

Example:
```bash
az repos pr create \
--title "A cool pr" \
--description "With a cool description" \
--label "documentation"
```

**Additional context**
The python module azure-devops is already able to create pull request with labels: [Reference 1](https://github.com/microsoft/azure-devops-python-api/blob/7f2d7a489ad5d305512ff6f5337ca14605904531/azure-devops/azure/devops/v7_1/git/git_client_base.py#L2140), [Reference 2](https://github.com/microsoft/azure-devops-python-api/blob/7f2d7a489ad5d305512ff6f5337ca14605904531/azure-devops/azure/devops/v7_1/git/models.py#L1472)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.