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.