Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating TFS Custom Check-in Policy: Check Comment if it contains certain string

Followed https://blog.devart.com/creating-tfs-custom-check-in-policy-part-1.html

I have added the registry key and value, however unable to see the gated policy being applied.

I also have a gated check-in policy enabled, which allowed for each checkin to be built on TFS.

It is my assumption that TFS should stop you (show a warning/error based on the policy that is currently being implemented) before the gated-checkin popup is shown.

Any help would be appreciated.

like image 589
vay Avatar asked Sep 18 '25 13:09

vay


1 Answers

Yes the Check-in Policy is a warning such as below picture. Only if there is a pending change and not meet the policy. Visual Studio will generate a row called Policy Warnings:

The following check-in policies were not satisfied:

You must .......

enter image description here

If you ignored the warning and insist on checking in, you will get a failure and nothing checked in.

enter image description here

Only after you already met check in policy, then gated check-in dialog will pop-up and ask you to build. Once build passed verified , your local pending changes will finally be checked in.

enter image description here


If your customized check in policy not work, make sure it already added in Source Control Settings and been enabled.

enter image description here

Hope it's clear.

like image 129
PatrickLu-MSFT Avatar answered Sep 20 '25 02:09

PatrickLu-MSFT