Browse Source

Tag-webhooks are useless without shasums

tags/v1.21.12.1
Kim "BKC" Carlbäcker 8 years ago
parent
commit
f364522468
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      models/action.go

+ 2
- 0
models/action.go View File

@@ -565,8 +565,10 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
}

case ActionPushTag: // Create
shaSum := git.OpenRepository(repo.RepoPath()).GetTagCommitID(refName)
return PrepareWebhooks(repo, HookEventCreate, &api.CreatePayload{
Ref: refName,
Sha: shaSum,
RefType: "tag",
Repo: apiRepo,
Sender: apiPusher,


Loading…
Cancel
Save