Skip to content

Commit f364522

Browse files
committed
Tag-webhooks are useless without shasums
1 parent abf6c3a commit f364522

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/action.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,10 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
565565
}
566566

567567
case ActionPushTag: // Create
568+
shaSum := git.OpenRepository(repo.RepoPath()).GetTagCommitID(refName)
568569
return PrepareWebhooks(repo, HookEventCreate, &api.CreatePayload{
569570
Ref: refName,
571+
Sha: shaSum,
570572
RefType: "tag",
571573
Repo: apiRepo,
572574
Sender: apiPusher,

0 commit comments

Comments
 (0)