|
|
@ -565,8 +565,10 @@ func CommitRepoAction(opts CommitRepoActionOptions) error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case ActionPushTag: // Create
|
|
|
|
case ActionPushTag: // Create
|
|
|
|
|
|
|
|
shaSum := git.OpenRepository(repo.RepoPath()).GetTagCommitID(refName) |
|
|
|
return PrepareWebhooks(repo, HookEventCreate, &api.CreatePayload{ |
|
|
|
return PrepareWebhooks(repo, HookEventCreate, &api.CreatePayload{ |
|
|
|
Ref: refName, |
|
|
|
Ref: refName, |
|
|
|
|
|
|
|
Sha: shaSum, |
|
|
|
RefType: "tag", |
|
|
|
RefType: "tag", |
|
|
|
Repo: apiRepo, |
|
|
|
Repo: apiRepo, |
|
|
|
Sender: apiPusher, |
|
|
|
Sender: apiPusher, |
|
|
|