GitLabProjects
GitLabProjects copied to clipboard
Add support for Gitlab merge request templates
When creating a merge request, you should be able to select one of the merge request template into description. (Found in primary branch(master by default), .gitlab/merge_request_templates/*.md).
It could also be great to be able to create your own local template inside the plugin configuration.
Hi.
This sounds great but not sure how to do this correctly. If primary locations for the templates is master branch and you are creating merge request on branch that is not master branch (probably) IDE has no idea what is on your master branch, it would need to checkout master, read the files, checkout back and use them. Seems not great.
Other option would be to use templates from branch you are on (better but still).
Adding option to create custom templates in the plugin sounds great but it would be a lot of work and it would not be shareable (easily) so it does not sound that useful as in repo templates.
I check gitlab rest api if they are exposing the templates, I do not see it anywhere.
Any ideas how to do this? Am I missing something?
I've checked the apis too and it seems that there is still an open issue on gitlab enterprise tracker to add an api endpoint for those. Using locally available templates in current branch may be a good solution(not the best though) as they don't change often usually and there's a great chance that you will have the correct one.
Can you send me a link for that gitlab issue? I would prefer to do this over API.
Here what I found : https://gitlab.com/gitlab-org/gitlab-ee/issues/885