Skip to content

Commit

Permalink
Send webhook when tag is removed via Web UI (#14015) (#14019)
Browse files Browse the repository at this point in the history
* Send webhook when tag is removed via Web UI

* Stray code (cherry picked from commit 53308de)

* Fix for 1.13
  • Loading branch information
CirnoT authored Dec 16, 2020
1 parent a728d1e commit 90dfe44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ func DeleteReleaseByID(id int64, doer *models.User, delTag bool) error {
return fmt.Errorf("git tag -d: %v", err)
}

notification.NotifyPushCommits(
doer, repo, git.TagPrefix+rel.TagName, rel.Sha1, git.EmptySHA, repository.NewPushCommits())
notification.NotifyDeleteRef(doer, repo, "tag", git.TagPrefix+rel.TagName)

if err := models.DeleteReleaseByID(id); err != nil {
return fmt.Errorf("DeleteReleaseByID: %v", err)
}
Expand Down

0 comments on commit 90dfe44

Please sign in to comment.