Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2018-06-14 20:40:35 +0300
committerMario de la Ossa <mariodelaossa@gmail.com>2018-06-14 20:57:15 +0300
commit2fec4183368aebf848e3014598081948ddce49ca (patch)
tree8a223e4e4cd7a3b0a0e96241f9ef549c5c3d84f8 /app/models/project_services
parentfd93d8f044eef611d73325660463b599ef997c6d (diff)
ChatNotificationService - fix sending tag notifications when "only default branch" enabled
Diffstat (limited to 'app/models/project_services')
-rw-r--r--app/models/project_services/chat_notification_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_services/chat_notification_service.rb b/app/models/project_services/chat_notification_service.rb
index ae0debbd3ac..a60b4c7fd0d 100644
--- a/app/models/project_services/chat_notification_service.rb
+++ b/app/models/project_services/chat_notification_service.rb
@@ -155,6 +155,7 @@ class ChatNotificationService < Service
end
def notify_for_ref?(data)
+ return true if data[:object_kind] == 'tag_push'
return true if data.dig(:object_attributes, :tag)
return true unless notify_only_default_branch?