Git:如何在VSTS Git中强制执行工作项链接签入策略? [英] Git: How to enforce a Work Item Linkage Check in Policy in VSTS Git?

查看:87
本文介绍了Git:如何在VSTS Git中强制执行工作项链接签入策略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在VSTS Git中应用一个签入策略,在该策略中,每当发生新的签入时,都应该有一个强制执行工作项链接的签入策略.

I wanted to apply a check in policy in VSTS Git in which whenever a new check in is happening there should be check in policy in which work item linkage is mandatory.

我在VSTS GIT签入策略中找不到此功能,以前有人在这里做过,然后请指导.

I could not find this functionality in VSTS GIT check in policies, has anyone here done this before, then please guide.

推荐答案

对于git,您可以使用

For git, you can use branch police to check for linked work items.

您可以直接从目标分支中签出源分支,而不必直接将更改推送到目标分支.在源分支上进行更改.当您创建PR以便将更改从源分支合并到目标分支时,合并请求将在合并之前检查链接的工作项.

Instead of pushing change to the target branch directly, you can checkout a source branch from the target branch. Make changes on the source branch. When you create a PR to merge the changes from source branch into target branch, the pull request will check the linked work items before merging.

这篇关于Git:如何在VSTS Git中强制执行工作项链接签入策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆