Add RefFinder class to move the project_ref_name logic in one place
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
- Module is used in
lint.rb
, so it should just work as expected. There are no visual changes to verify here. - Pipeline should be
🍏
Edited by Rajendra Kadam