gpt4 book ai didi

amazon-web-services - AWS 代码提交 : Repository Notifications vs Repository Triggers

转载 作者:行者123 更新时间:2023-12-04 08:13:08 27 4
gpt4 key购买 nike

通知:https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-repository-email.html

触发器:https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-notify.html

官方文档指出,对于 CodeCommit 存储库“遵循 CloudWatch 事件规则的事件”(如拉取请求),我们使用存储库通知。

而对于只是“操作事件”的 CodeCommit 存储库事件(例如创建分支、将代码推送到分支),我们使用存储库触发器。

我不明白“遵循 CloudWatch 事件规则的事件”和“操作事件”之间的区别。对我来说,拉取请求和将代码推送到分支似乎是相似的事件。

因此,混淆了为什么我们需要存储库通知和存储库触发器。

最佳答案

我今天问了同样的问题,我在 docs 上找到了这个问题。 :

Repository notifications are different from repository triggers. Although you can configure a trigger to use Amazon SNS to send emails about some repository events, those events are limited to operational events, such as creating branches and pushing code to a branch. Triggers do not use CloudWatch Events rules to evaluate repository events. They are more limited in scope. For more information about using triggers, see Manage Triggers for a Repository.

关于amazon-web-services - AWS 代码提交 : Repository Notifications vs Repository Triggers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55337964/

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