Search code examples
asp.net-coreazure-devopscommituser-storiesgit-repo

How to link commits to User Story automatically using Visual Studio?


I have a git repo in Azure DevOps Repos, I also have a test User Story set up. I want to set up user story to be linked to my commits automatically. Please help how to do it.

Thanks in advance.


Solution

  • In order to do that you need to add certain syntax to your commit messages. You need to add # followed by the work item number into the commit message. You can also add keywords like Fix or InProgress to update the user story via the commit message.

    This documentation should get you started