Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable/Change Visual Studio Team Services automatic interpretation of hash-number commit messages

We are trying to migrate our code base to VSTS. Our developers have referenced work items (bugs) in their commit messages.

VSTS is interpreting these numbers such as #3235 when processing the commit messages.

For example when we push our code to VSTS it interprets the #3235 and automatically associates a work item.

We would like to change/disable this setting in VSTS, or find a work around.

example commit message:

commit 8bb44596: Merge pull request #3139 in Production\system from 3641_Bug to Dev, this is automatically linked to #3139 work item which is not desired.

If possible we would like to use the VSTS item in brackets e.g [vsts: 3159]

It is not realistic to manually edit every commit message.

like image 307
scranley Avatar asked May 29 '26 14:05

scranley


1 Answers

  1. Navigate to the Version Control settings
    a. https://company-name.visualstudio.com/project-name/_admin/_versioncontrol?_a=security
    b. Make sure to change to match your project name
  2. Click on the repository you are pushing to
  3. Click Options
  4. Deselect Automatically create links for work items mentioned in a commit comment enter image description here

  5. Once you are done migrating, you can recheck Automatically create links for work items mentioned in a commit comment.

like image 53
scranley Avatar answered May 31 '26 06:05

scranley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!