aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 681e8c0d9a..2f70bbb665 100644
--- a/services/release/release.go
+++ b/services/release/release.go
@@ -37,6 +37,15 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error {
return err
}
rel.LowerTagName = strings.ToLower(rel.TagName)
+ // Prepare Notify
+ if err := rel.LoadAttributes(); err != nil {
+ log.Error("LoadAttributes: %v", err)
+ return err
+ }
+ notification.NotifyPushCommits(
+ rel.Publisher, rel.Repo, git.TagPrefix+rel.TagName,
+ git.EmptySHA, commit.ID.String(), models.NewPushCommits())
+ notification.NotifyCreateRef(rel.Publisher, rel.Repo, "tag", git.TagPrefix+rel.TagName)
}
commit, err := gitRepo.GetTagCommit(rel.TagName)
if err != nil {