How to modify the default Check-in Action in TFS?

落爺英雄遲暮 提交于 2019-12-29 07:31:24

问题


The default check-in action for a work-item is "resolve". I'd like to set it to "associate" so that this work item isn't automaticaly closed if I check-in stuff too fast. How can I do that?


回答1:


Yup, the check-in action can only be associated to a state transition (i.e. Active to Resolved). In my blog post that Fredrick linked to (http://www.woodwardweb.com/vsts/top_tfs_tip_3_r.html) I talk about how to remove that. You'll need to customize the work item for everyone in your team project to make this happen. For help on that see

http://msdn.microsoft.com/en-us/library/ms243849(VS.80).aspx




回答2:


Martin Woodward blogged about how to remove the "Resolve" action from the check-in dialog as a work-around for this:

http://www.woodwardweb.com/vsts/top_tfs_tip_3_r.html




回答3:


Unlike previous versions, in VS2015 the registry key solution seems to work in the cases we need!

I just went to

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\TeamFoundation\SourceControl\Behavior

and changed ResolveAsDefaultCheckinAction from True to False.



来源:https://stackoverflow.com/questions/62294/how-to-modify-the-default-check-in-action-in-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!