mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
Tag-webhooks are useless without shasums
This commit is contained in:
parent
abf6c3a8e3
commit
f364522468
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue