* 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
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,10 @@ func DeleteReleaseByID(id int64, doer *models.User, delTag bool) error {
|
||||||
return fmt.Errorf("git tag -d: %v", err)
|
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 {
|
if err := models.DeleteReleaseByID(id); err != nil {
|
||||||
return fmt.Errorf("DeleteReleaseByID: %v", err)
|
return fmt.Errorf("DeleteReleaseByID: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue