Improve template repository
Hello maintainers,
I saw there that this feature was implemented (gitlab-foss#25631 (closed)), https://docs.gitlab.com/ee/user/admin_area/settings/instance_template_repository.html
However I'm wondering, could we extend this list ? Why is it so that this list was only "limited" to a list of files / directory ?
I did not find any issue on subject (except an issue about adding documentation on the current feature)
For what I see when creating a file in the interface we can directly select a "type of template" and fill it with the template, so why should it be only limited to the given list ?
As I understand how the feature work (I did not check the code), you are listing the files presents in sub-directories for each templates, so why not support something based on a find glob ?
Like
<template repository>/*/*
(Maybe with some limitations on directories and file names chars to avoid parsing problems)
It would allow companies that want to set some "standards" to define them at "organization" level.
At first I was only thinking about CONTRIBUTING.md which was not in the current supported list, but now I'm thinking a bit more global... it would allow to provide more "standards templates" like (for one ones I currently see):
- .releaserc.json
- Dangerfile
- setup.cfg
- pyproject.toml
- etc
(A far etched idea could also be that those directories could be "projects" directories to be able to version those files, but it's would be a lot more complicated...)
Regards