Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/filter/references/merge_request_reference_filter.rb')
-rw-r--r--lib/banzai/filter/references/merge_request_reference_filter.rb16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/banzai/filter/references/merge_request_reference_filter.rb b/lib/banzai/filter/references/merge_request_reference_filter.rb
index 6c5ad83d9ae..5bc18ee6985 100644
--- a/lib/banzai/filter/references/merge_request_reference_filter.rb
+++ b/lib/banzai/filter/references/merge_request_reference_filter.rb
@@ -17,12 +17,6 @@ module Banzai
only_path: context[:only_path])
end
- def object_link_title(object, matches)
- # The method will return `nil` if object is not a commit
- # allowing for properly handling the extended MR Tooltip
- object_link_commit_title(object, matches)
- end
-
def object_link_text_extras(object, matches)
extras = super
@@ -53,20 +47,16 @@ module Banzai
.includes(target_project: :namespace)
end
- def reference_class(object_sym, options = {})
- super(object_sym, tooltip: false)
+ def reference_class(object_sym, tooltip: false)
+ super
end
def data_attributes_for(text, parent, object, **data)
- super.merge(project_path: parent.full_path, iid: object.iid, mr_title: object.title)
+ super.merge(project_path: parent.full_path, iid: object.iid)
end
private
- def object_link_commit_title(object, matches)
- object_link_commit(object, matches)&.title
- end
-
def object_link_commit_ref(object, matches)
object_link_commit(object, matches)&.short_id
end