diff options
Diffstat (limited to 'app/services/commits')
-rw-r--r-- | app/services/commits/update_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/commits/update_service.rb b/app/services/commits/update_service.rb index 7ec678ff1cf..45c971d153a 100644 --- a/app/services/commits/update_service.rb +++ b/app/services/commits/update_service.rb @@ -20,7 +20,8 @@ module Commits .new(commit.project, current_user) .execute(tag_name, commit.sha, message, release_description) - if result[:status] + if result[:status] == :success && (tag = result[:tag]) + SystemNoteService.tag_commit(commit, commit.project, current_user, tag.name) commit end end |