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
.mdfiles such asDefault.mdwith 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.