Using Merge Request and Issue Templates
Introduction
Section titled โIntroductionโTemplates guide contributors to provide consistent information when opening merge requests or issues.
Add Templates
Section titled โAdd Templatesโ- Create directories in your project:
.gitlab/merge_request_templates/
.gitlab/issue_templates/
- Add
.md
files such asDefault.md
with the desired content. - Commit and push the templates.
Enable Default Templates
Section titled โEnable Default Templatesโ- Go to Settings > General > Merge requests or Issues.
- Choose a default template for each type so new submissions populate automatically.
Best Practices
Section titled โBest Practicesโ- Include sections for context, testing, and related issues.
- Keep templates brief and update them as processes evolve.
- Provide naming conventions so contributors can choose the right template.