Support issue and merge request templates in instance and group level template repositories
Problem to solve
Projects can include issue and merge request templates in their repository at .gitlab/<issue|merge_request>_templates/*
. When creating an issue or MR, those templates are made available to users to select. However, there is no way to specify these templates at group or instance level.
Further details
GitLab Workhorse, GitLab Pages, Gitaly, gitlab-elasticsearch-indexer, and a number of other "satellite" projects at gitlab share common problems during a security release that we'd like to address through the addition of a single, shared merge request template, containing steps to be followed for a security release in any of those projects. There's no way to configure such a thing in GitLab at present, though: gitlab-pages!172 (comment 205803454)
Issue and MR description templates aren't the only kinds of templates we provide - we also have file templates. In Core, users can also select from a list of vendored templates for Dockerfile
, LICENSE
, .gitlab-ci.yml
, and .gitignore
files. In GitLab Premium, a repository can be selected at group or instance level that contains custom templates for those four files.
Proposal
Extend the lookup for issue and merge request templates so it pulls them from the group and instance-level file template repository in GitLab Premium . This allows people to have a single template that is common to many projects.
Permissions and Security
https://gitlab.com/gitlab-org/gitlab-ee/issues/7876 is still unresolved. Other than that, all the permissions problems are already worked out.
Documentation
(TOD)
Testing
(TODO)
What does success look like, and how can we measure that?
We can use a single security release issue/MR template for all satellite projects used by GitLab