Skip to content

Add Gitlab::Source for referencing Gitlab source code repos

Brian Williams requested to merge bwill/refactor-gitlab-source-links into master

What does this MR do and why?

Describe in detail what your merge request does and why.

VersionCheckHelper has code for creating links to the source code for a specific GitLab version. Currently, this code is used to link to the GitLab source repo from the help page.

We would like to be able reuse this code to link to specific source files: !117923 (comment 1364572218)

This MR moves the code to a new Gitlab::Source class, so that it can be used in other places throughout the application.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Brian Williams

Merge request reports

Loading