TFS-GIT Release Notes

I was recently having trouble generating some Release Notes for a current project that is using Visual Studio Online Visual Studio Team Services.  With Git as our backing source control system there didn’t seem to be an easy way to see what Work Items were going into a release.  Thankfully we are associating Work Items with commits which makes the following Powershell script work. 

Passing in our current release branch, and our previous release branch we can isolate the new commits and then parse their commit messages looking for the “Related Work Items:” text that Visual Studio appends to commits.  Once we have those WorkItem ids we can use the TFS api to get some info about them and create some release notes.

 

You can find the script on GitHub.