diff options
author | Balasankar "Balu" C <balasankar@gitlab.com> | 2019-09-13 09:14:30 +0530 |
---|---|---|
committer | Balasankar "Balu" C <balasankar@gitlab.com> | 2019-09-13 09:14:30 +0530 |
commit | 68328a2b641382c6728749718fce4a6e981a0899 (patch) | |
tree | 486bed19232863686217e9d122e3bf6d3dd5b3ba | |
parent | 76399d1870c80e091753d8eda02dc2844f604e0b (diff) | |
download | gitlab-ce-slack-protected-branch-notification.tar.gz |
Make notification branch selection a concernslack-protected-branch-notification
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
-rw-r--r-- | app/models/concerns/notification_branch_selection.rb (renamed from app/models/project_services/notification_branch_selection.rb) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/project_services/notification_branch_selection.rb b/app/models/concerns/notification_branch_selection.rb index 1fa6f3250d4..d8e18de7551 100644 --- a/app/models/project_services/notification_branch_selection.rb +++ b/app/models/concerns/notification_branch_selection.rb @@ -1,8 +1,11 @@ # frozen_string_literal: true -# This module will be included in ChatNotificationService and -# PipelinesEmailService classes. Not to be used directly. +# Concern handling functionality around deciding whether to send notification +# for activities on a specified branch or not. Will be included in +# ChatNotificationService and PipelinesEmailService classes. module NotificationBranchSelection + extend ActiveSupport::Concern + BRANCH_CHOICES = [ [_('All branches'), 'all'], [_('Default branch'), 'default'], |