mirror of https://github.com/go-gitea/gitea.git
* Send webhook when tag is removed via Web UI
* Stray code (cherry picked from commit 53308de0bf
)
* Fix for 1.13
This commit is contained in:
parent
a728d1e046
commit
90dfe445c2
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue