diff options
-rw-r--r-- | lib/banzai/filter/merge_request_reference_filter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/banzai/filter/merge_request_reference_filter.rb b/lib/banzai/filter/merge_request_reference_filter.rb index 1a24525e462..faeace82ed2 100644 --- a/lib/banzai/filter/merge_request_reference_filter.rb +++ b/lib/banzai/filter/merge_request_reference_filter.rb @@ -21,6 +21,10 @@ module Banzai only_path: context[:only_path]) end + def project_from_ref(ref) + projects_per_reference[ref || current_project_path] + end + # Returns a Hash containing the merge_requests per Project instance. def merge_requests_per_project @merge_requests_per_project ||= begin |