gpt4 book ai didi

github - 如何将构建失败电子邮件限制为仅发送到 travis CI 中的特定分支?

转载 作者:行者123 更新时间:2023-12-02 06:49:22 25 4
gpt4 key购买 nike

我为 travis 构建失败配置了电子邮件和松弛通知。目前它会发送每个分支构建失败的通知。由于每个开发人员都会创建很多分支,因此邮件数量很大,听起来像是垃圾邮件。我只想限制开发分支失败时的邮件。

我在 .travis.yml 中的配置是这样的。

notifications:
email:
recipients:
- xyz@abc.com
branches:
only: develop
on_success: change
on_failure: always

是否真的支持此分支特定警报,如果是,您如何做到这一点?

最佳答案

对于您关于 Travis 当前是否支持分支特定通知的具体询问,答案是。以下来自Travis documentation :

There is currently no way of limiting the notification to a specific branch, but the payload will contain all relevant data to do so at the receiving end

因此,目前 Travis 不支持特定于分支的通知,但需要通过使用 Travis 的 webhook 负载来单独实现。

更新:(由 @LucasCimon 提供)有一个开放的 GitHub issue跟踪此功能请求。

关于github - 如何将构建失败电子邮件限制为仅发送到 travis CI 中的特定分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56185585/

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