Enforce Naming Commit Messages with Visual Studio Team Services

I see some help pages on here asking for something similar, but I can't seem to find anything regarding enforcing Jira IDs in Visual Studio Team Services in Git mode's commit messages.  Has anyone attempted to enforce that when utilizing a tool like Jira Git Integration?  Yet Another Commit Checker seems to only support BitBucket.  Ideas?


1 answer

1 accepted

Hi Nathan,

If you're using TFS on-premises, there's an option for deploying an add-in to do this. You can also do the enforcement on the client side as well.

The thing that doesn't have an option available is to do this on the Visual Studio Team Services online --- there's no hook or API support for failing a commit because it doesn't meet pre-conditions.

Is TFS on-premises OR client side enforcement an option for you?

We are using on-premise TFS. Both your suggestions sound like they could be viable.  

So there's two levels of checking that can be done...

There's a real check where the issue must really exist and the Jira API is checked to make sure.

What a lot of people do is just check the message to see if it's likely it has a Jira issue referenced: ABC-1234 (even if ABC-1234 isn't a real Jira issue). The advantage to that is there is no API check, so you don't get into Jira credentials or Jira problems causing TFS to fail commits.

I see.  Well, at the very least, that's a good start. Any links to tutorials/documentation covering that functionality? 

Perfect. Thank you kindly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

361 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you