Skip to content

Add RefFinder class to move the project_ref_name logic in one place

Rajendra Kadam requested to merge unify-ref-name-logic into master

What does this MR do and why?

While working on !155868 (merged), we realised we duplicated logic to find project_ref_name, so we move the logic to a class.

This MR adds that class that can be used wherever required. It also adds specs for the new class.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

NA

How to set up and validate locally

  1. Module is used in lint.rb, so it should just work as expected. There are no visual changes to verify here.
  2. Pipeline should be 🍏
Edited by Rajendra Kadam

Merge request reports