summaryrefslogtreecommitdiff
path: root/app/services/releases/create_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/releases/create_service.rb')
-rw-r--r--app/services/releases/create_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/releases/create_service.rb b/app/services/releases/create_service.rb
index 9a0a876454f..81ca9d6d123 100644
--- a/app/services/releases/create_service.rb
+++ b/app/services/releases/create_service.rb
@@ -47,11 +47,17 @@ module Releases
release.save!
+ notify_create_release(release)
+
success(tag: tag, release: release)
rescue => e
error(e.message, 400)
end
+ def notify_create_release(release)
+ NotificationService.new.async.send_new_release_notifications(release)
+ end
+
def build_release(tag)
project.releases.build(
name: name,