diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-19 12:07:05 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-19 12:07:05 +0000 |
commit | d04ac74556e74df89da8f46ed4188b0376b71c3d (patch) | |
tree | d0ab1e194e2928769e031033265356673e35b260 /app | |
parent | d6c57146c5a8f122bd7313cbea1a236d45977650 (diff) | |
parent | 2fec4183368aebf848e3014598081948ddce49ca (diff) | |
download | gitlab-ce-d04ac74556e74df89da8f46ed4188b0376b71c3d.tar.gz |
Merge branch '45487-slack-tag-push-notifs' into 'master'
Resolve "Slack Tag push notifications are not send (only default branch option)"
Closes #45487
See merge request gitlab-org/gitlab-ce!19864
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_services/chat_notification_service.rb | 1 |
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? |