summaryrefslogtreecommitdiff
path: root/app/models/system_note_metadata.rb
diff options
context:
space:
mode:
authorEugenia Grieff <egrieff@gitlab.com>2019-09-20 14:23:21 +0100
committerEugenia Grieff <egrieff@gitlab.com>2019-10-23 19:22:11 +0100
commit8684d67accb1c34c146e143ba7496c5732586553 (patch)
treec95aa1e2e06940db9657e0270817b40fd5ae0f7f /app/models/system_note_metadata.rb
parent7f0a4a64d0bc59b184ae3ee578adb6ebd3c48bf7 (diff)
downloadgitlab-ce-8684d67accb1c34c146e143ba7496c5732586553.tar.gz
Add milestone and label note types to cross refs
- Include new types in SystemNoteMetadata - Add Label and Milestone reference_pattern to Mentionable::ReferenceRegexes to be checked for cross references
Diffstat (limited to 'app/models/system_note_metadata.rb')
-rw-r--r--app/models/system_note_metadata.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/system_note_metadata.rb b/app/models/system_note_metadata.rb
index 11cbeb60bba..5a44ee7211b 100644
--- a/app/models/system_note_metadata.rb
+++ b/app/models/system_note_metadata.rb
@@ -10,6 +10,7 @@ class SystemNoteMetadata < ApplicationRecord
commit cross_reference
close duplicate
moved merge
+ label milestone
].freeze
ICON_TYPES = %w[