git标记已创建/标记已推送的挂钩事件
我正在看bitbucket API v2: 它说钩子事件是:git标记已创建/标记已推送的挂钩事件,git,bitbucket,bitbucket-api,bitbucket-cloud,Git,Bitbucket,Bitbucket Api,Bitbucket Cloud,我正在看bitbucket API v2: 它说钩子事件是: issue:comment_created issue:created issue:updated project:updated pullrequest:approved pullrequest:comment_created pullrequest:comment_deleted pullrequest:comment_updated pullrequest:created pullrequest:fulfilled pullr
issue:comment_created
issue:created
issue:updated
project:updated
pullrequest:approved
pullrequest:comment_created
pullrequest:comment_deleted
pullrequest:comment_updated
pullrequest:created
pullrequest:fulfilled
pullrequest:rejected
pullrequest:unapproved
pullrequest:updated
repo:commit_comment_created
repo:commit_status_created
repo:commit_status_updated
repo:created
repo:deleted
repo:fork
repo:imported
repo:push
repo:transfer
repo:updated
没错,我为他们整理了名单。无论如何,我的问题是-我如何知道是否创建了git标记?我希望了解何时创建标记/将标记推送到bitbucket remote。有人知道吗?您正在寻找的是
repo:push
事件。标记也会被推送到存储库,因此它们也会触发repo:push
事件
在这里,您可以找到有关webhook将发送的信息和负载的更多信息:
有效载荷可能看起来像这样:
{
"repository": "repo-name",
"push": {
"changes": [
{
"new": {
"type": "tag",
"name": "name-of-tag",
"target": {
"type": "commit",
"hash": "709d658dc5b6d6afcd46049c2f332ee3f515a67d",
...
},
...
}
},
...
]
}
}
您要查找的是
repo:push
事件。标记也会被推送到存储库,因此它们也会触发repo:push
事件
在这里,您可以找到有关webhook将发送的信息和负载的更多信息:
有效载荷可能看起来像这样:
{
"repository": "repo-name",
"push": {
"changes": [
{
"new": {
"type": "tag",
"name": "name-of-tag",
"target": {
"type": "commit",
"hash": "709d658dc5b6d6afcd46049c2f332ee3f515a67d",
...
},
...
}
},
...
]
}
}