开发者

Programatically intercept and/or manipulate check-in comments in TFS / Visual Studio 2010

开发者 https://www.devze.com 2023-04-09 02:41 出处:网络
is there a way to intercept a check-in comment during check-in operation on Team Foundation Server Version Control in order to enrich it with additional information?

is there a way to intercept a check-in comment during check-in operation on Team Foundation Server Version Control in order to enrich it with additional information?

Another option would be to intercept it and ensure that it's formatted correctly and contain some mandatory informatio开发者_JAVA技巧n.

We have some policy regarding formatting comments and I would like to add some prevention / user assistance functionality at that point.

The worst case would be a shortcut to fill out the comment field in Visual Studio from some predefined template.

Thanks in advance.


What you need here is a custom check-in policy. Power Tools has some policies out of the box, however they do not cover your needs. The closest one requires users to provide a meaningful comment for their check-ins, which is not what you are looking for.

Still there is a way to implement policy on your own. Here is the blog post on MSDN written by Jim Lamb. He explains how one can implement custom check-in policy, package it and deploy on TFS 2010.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号