Azure / Azure/azure-cli-extensions

Automatically link work items from commits to pull requests created via az repos pr create

Open
#3,007 11 comments 4 reactions 0 assignees View on GitHub
DevOps Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

Hey everyone,

I have a request to make the azure-cli behave more like the Azure DevOps GUI does when it comes to pull requests. We have a blind colleague who would really appreciate this feature since the GUI is not really useable for him.
* When I link a work item to a git commit (e.g. via `git commit -am "472 Remove test file"`) in a feature branch and then create a pull request from this feature branch via the GUI, the pull request will automatically link the work item:
![image](https://user-images.githubusercontent.com/56680419/107943373-e4395800-6f8c-11eb-9737-19ed80952a49.png)
* Unfortunately, when I create a pull request via `az repos pr create`, the work items mentioned in commits are not automatically linked.

I hope someone could take a look at this, I'm very glad my blind colleague is so open to branch policies, pull requests and all the other stuff I'm introducing.

Cheers,
Robin

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 3324c35b-f381-8db4-b168-6f73e20c1f3e
* Version Independent ID: 7a3e8656-7741-8365-e56c-44056f034b31
* Content: [az repos pr](https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/repos/pr?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/ext/azure-devops/repos/pr.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/ext/azure-devops/repos/pr.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

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.