summaryrefslogtreecommitdiff
path: root/app/models/notification_reason.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-05 12:06:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-05 12:06:20 +0000
commit791785af5540d18eaa97da24f9ff8638e1960b72 (patch)
treecaeb6f08d9cc10a0052dc6851b46653d94c29022 /app/models/notification_reason.rb
parenta92d6b36c2d2892e8c070efb169f0c06815900ee (diff)
downloadgitlab-ce-791785af5540d18eaa97da24f9ff8638e1960b72.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/notification_reason.rb')
-rw-r--r--app/models/notification_reason.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/notification_reason.rb b/app/models/notification_reason.rb
index 6856d397413..a7967239417 100644
--- a/app/models/notification_reason.rb
+++ b/app/models/notification_reason.rb
@@ -6,12 +6,14 @@ class NotificationReason
OWN_ACTIVITY = 'own_activity'
ASSIGNED = 'assigned'
MENTIONED = 'mentioned'
+ SUBSCRIBED = 'subscribed'
# Priority list for selecting which reason to return in the notification
REASON_PRIORITY = [
OWN_ACTIVITY,
ASSIGNED,
- MENTIONED
+ MENTIONED,
+ SUBSCRIBED
].freeze
# returns the priority of a reason as an integer