Let the central pipeline participate in merge judgment
What does this MR do and why?
Close #4484 (closed)
在 Mono 功能开启后,如果项目设置了 流水线必须成功
,GitLab 只会查找当前项目的普通流水线,而不会考虑 主流水线
。
当前 MR 优化上述逻辑:在检查 MR 能否合并时,把 主流水线
也当做自己的流水线来参与判断。
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- 全局开启 Mono 的 FF:
ff_monorepo
- 在项目中设置
流水线必须成功
- 创建一个没有流水线的 MR,可以看到 MR 不允许被合并
- 为 MR 添加
monorepo
的 Label,并且创建一个主流水线
- 可以看到 MR 允许合并了。
由 路志远 编辑于