我见过(并测试过)GitHub与Amazon SNS的集成。但是,似乎没有办法指定要挂钩的事件(至少在UI中)。推进工作正常。有没有办法挂钩拉取请求并让它将事件推送到sns主题?
注意:如果有相关文档,我无法找到它。请在回复中附上一个链接。
答案 0 :(得分:3)
补充OP的答案:
GET /repos/:owner/:repo/hooks
)PATCH /repos/:owner/:repo/hooks/:id
)我个人并不知道整合被视为"通常"网络挂接。
答案 1 :(得分:0)
仅供参考,对于未来的读者,我想我找到了自己的答案。我找到了以下内容:
{
"name": "amazonsns",
"events": [
"push"
],
"supported_events": [
"commit_comment",
"create",
"delete",
"download",
"follow",
"fork",
"fork_apply",
"gist",
"gollum",
"issue_comment",
"issues",
"member",
"public",
"pull_request",
"pull_request_review_comment",
"push",
"status",
"team_add",
"watch"
],
"schema": [
[
"string",
"aws_key"
],
[
"string",
"aws_secret"
],
[
"string",
"sns_topic"
],
[
"string",
"sqs_queue"
],
[
"password",
"aws_secret"
]
]
}