Align repository_resolver signature for DESIGN repo type
Gitlab::GlRepository allows you to get the repositories depending on the repo type, e.g. a design repository.
There are 4 repo types: project
, wiki
, snippet
, design
.
e.g. you can get a snippet repo by calling: Gitlab::GlRepository::DESIGN.repository_for(snippet)
.
The repository_resolver
param used to create the new object is usually an object of the repo type itself. But for designs, it is a project
. We want to re-factor for consistency, such that we can make this call to get a project's design repo Gitlab::GlRepository::DESIGN.repository_for(project.design_management_repository)
instead of Gitlab::GlRepository::DESIGN.repository_for(project)
.
Edited by Aakriti Gupta