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

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

Open RobinDink opened this issue 4 years ago • 9 comments

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
  • 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.

RobinDink avatar Feb 15 '21 12:02 RobinDink

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.

Issue Details

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
  • 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.

Author: RobinZergiebel
Assignees: -
Labels:

DevOps, Service Attention

Milestone: -

ghost avatar Feb 15 '21 15:02 ghost

devops

yonzhan avatar Feb 15 '21 15:02 yonzhan

Any news?

RobinDink avatar Apr 28 '21 11:04 RobinDink

This feature would mean a lot to our visually impaired colleague, please take a look at this.

RobinDink avatar Aug 10 '21 14:08 RobinDink

Also waiting for this fix, it is pretty unfortunate that az cli behaves differently than UI flow

jdfa avatar Nov 10 '22 14:11 jdfa

I am also interested in this feature

janrhijn avatar Feb 16 '23 12:02 janrhijn

Looking for this to either happen automatically, or a workaround. We are using a pipeline to create develop -> main PRs for multiple different repositories at the same time, but work items don't get linked.

FrancisEgan avatar May 11 '23 17:05 FrancisEgan

We are also looking to automatically link our tasks when generating PRs through Azure Cli as part of our deployment pipeline, but currently devops is how we have to do it until this is fixed.

thammonsgpsfx avatar Apr 05 '24 22:04 thammonsgpsfx

Any update on this? Has someone figured out a workaround (beyond using the web UI)?

TheoDulka avatar Jul 01 '24 15:07 TheoDulka