aboutsummaryrefslogtreecommitdiffstats
path: root/services/release
diff options
context:
space:
mode:
Diffstat (limited to 'services/release')
-rw-r--r--services/release/release.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/release/release.go b/services/release/release.go
index 9e0654e860..8b4119d252 100644
--- a/services/release/release.go
+++ b/services/release/release.go
@@ -152,6 +152,15 @@ func DeleteReleaseByID(id int64, doer *models.User, delTag bool) error {
return fmt.Errorf("git tag -d: %v", err)
}
+ notification.NotifyPushCommits(
+ doer, repo,
+ &repository.PushUpdateOptions{
+ RefFullName: git.TagPrefix + rel.TagName,
+ OldCommitID: rel.Sha1,
+ NewCommitID: 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)
}