gpt4 book ai didi

azure - 如何将分支策略与Azure Repos中的工作项连接?

转载 作者:行者123 更新时间:2023-12-03 07:00:53 24 4
gpt4 key购买 nike

我有几个关于 Azure Repos 中的分支策略的问题。

如您所见,我们有一个基于 Azure DevOps 中链接项目的分支策略。

我的问题:

  1. 仅当用户的分支与某个故事相关时,是否可以允许用户将其更改推送到主分支

  2. 第二个 - 仅当用户的任务是他们尝试推送的故事的子级时,是否可以允许用户将更改推送到故事分支

我已阅读所有有关策略的文档,但没有找到任何合适的内容

或者,如果上述内容不存在,您可以推荐哪些政策

enter image description here

最佳答案

Is it possible to allow users push their changes to Main branch only if their branch is connected with some story?

恐怕目前还没有这样的设置或方法来实现这一点。

我们无法在分支策略中设置检查链接的工作项:

enter image description here

但是,目前还无法对与需求相关的工作项提出更详细的要求。

And the second -- is it possible to allow users push changes to Storybranch only if their task is child to story in which they are tryingto push?

与您的第一个问题类似,无法对关联的工作项提出额外的要求。

要解决此问题,我们需要启用“检查链接的工作项”选项,并且可以添加自动包含的审阅者来检查连接的工作项的类型:

enter image description here

关于azure - 如何将分支策略与Azure Repos中的工作项连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72377036/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com