Azure分支机构PR策略-要求源分支机构是最新的 [英] Azure Branch PR Policy - Require Source Branch Be Up-To-Date

查看:84
本文介绍了Azure分支机构PR策略-要求源分支机构是最新的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 develop 分支上获取高质量的分支策略,到目前为止,我已经掌握了一些良好的基础知识:

I'm trying to get quality branch policies on my develop branch and so far I've got some good basics:

  • 要求评论者批准
  • 要求所有检查都通过
  • 限制合并类型

我要确保的是PR中的源分支必须与它的目标分支保持最新.我似乎找不到此设置,并且想知道是否有人知道它是否存在.

What I want to ensure is that a source branch in a PR must be up-to-date with its target branch. I cannot seem to find this setting and was wondering if anyone knew if it existed.

GitHub将其作为可用的PR限制:

GitHub has this as an available PR restriction:

推荐答案

如果启用了构建验证,它将具有与您描述的行为相同的行为.

if you enable a build validation it will have the same behaviour as the one you describe.

阅读: 查看全文

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