我在Azure DevOps中有3条管道,每个分支都打开,代码在GitHub上。
每当我做任何拉请求,我的所有3管道都会被触发。我怎么才能避免呢?
消息上写着“的自动公关”

我的3条管道使用的是分开的分支:
开发流水线
trigger:
branches:
include: [develop]
paths:
include:
- backend/*分期流水线
trigger:
branches:
include: [staging]
paths:
include:
- backend/*生产流水线
trigger:
branches:
include: [master]
paths:
include:
- backend/*发布于 2020-07-05 15:16:13
我在docs PR触发器中找到了如何禁用所有PRs的运行,并添加:
pr: none在根部是这样的:
trigger:
branches:
include: [develop]
paths:
include:
- backend/*
pr: none另外:
重要 YAML PR触发器只支持在GitHub和Bitbucket云中。如果使用Azure Repos Git,则可以配置用于生成验证的分支策略,以触发用于验证的构建管道。
https://stackoverflow.com/questions/62735654
复制相似问题