aboutsummaryrefslogtreecommitdiffstats
path: root/services/release
diff options
context:
space:
mode:
Diffstat (limited to 'services/release')
-rw-r--r--services/release/release.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/services/release/release.go b/services/release/release.go
index af97987a27..0e04a71898 100644
--- a/services/release/release.go
+++ b/services/release/release.go
@@ -43,8 +43,12 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error {
return err
}
notification.NotifyPushCommits(
- rel.Publisher, rel.Repo, git.TagPrefix+rel.TagName,
- git.EmptySHA, commit.ID.String(), repository.NewPushCommits())
+ rel.Publisher, rel.Repo,
+ &repository.PushUpdateOptions{
+ RefFullName: git.TagPrefix + rel.TagName,
+ OldCommitID: git.EmptySHA,
+ NewCommitID: commit.ID.String(),
+ }, repository.NewPushCommits())
notification.NotifyCreateRef(rel.Publisher, rel.Repo, "tag", git.TagPrefix+rel.TagName)
rel.CreatedUnix = timeutil.TimeStampNow()
}