Skip to content
Snippets Groups Projects

Feature to create directly addressed Todos when mentioned in beginning

All threads resolved!
Compare and Show latest version
3 files
+ 43
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -43,9 +43,9 @@ def local_reference
@@ -43,9 +43,9 @@ def local_reference
self
self
end
end
def all_references(current_user = nil, references_options: {}, extractor: nil)
def all_references(current_user = nil, reference_options: {}, extractor: nil)
extractor ||= Gitlab::ReferenceExtractor.
extractor ||= Gitlab::ReferenceExtractor.
new(project, current_user, references_options)
new(project, current_user, reference_options)
self.class.mentionable_attrs.each do |attr, options|
self.class.mentionable_attrs.each do |attr, options|
text = __send__(attr)
text = __send__(attr)
@@ -63,7 +63,7 @@ def mentioned_users(current_user = nil)
@@ -63,7 +63,7 @@ def mentioned_users(current_user = nil)
def directly_addressed_users(current_user = nil)
def directly_addressed_users(current_user = nil)
options = { location: :beginning }
options = { location: :beginning }
all_references(current_user, references_options: options).users
all_references(current_user, reference_options: options).users
end
end
# Extract GFM references to other Mentionables from this Mentionable. Always excludes its #local_reference.
# Extract GFM references to other Mentionables from this Mentionable. Always excludes its #local_reference.
Loading