azure-cli-extensions
azure-cli-extensions copied to clipboard
Automatically link work items from commits to pull requests created via az repos pr create
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: - 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
- Content Source: latest/docs-ref-autogen/ext/azure-devops/repos/pr.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
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: - 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
- Content Source: latest/docs-ref-autogen/ext/azure-devops/repos/pr.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Author: | RobinZergiebel |
---|---|
Assignees: | - |
Labels: |
|
Milestone: | - |
devops
Any news?
This feature would mean a lot to our visually impaired colleague, please take a look at this.
Also waiting for this fix, it is pretty unfortunate that az cli behaves differently than UI flow
I am also interested in this feature
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.
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.
Any update on this? Has someone figured out a workaround (beyond using the web UI)?