GitLab Well Architected
Cookbook navigation
Prompts / Generate MR Description

Generate MR Description

Code ReviewAutomationCode-ReviewDeveloperDocumentationTestingCreateBeginner

Auto-generate comprehensive MR descriptions including what changed, testing steps, and related issues.

For GitLab Duo

prompt

Generate an MR description for these changes:

[PASTE CODE DIFF OR DESCRIBE CHANGES]

Include:
1. What changed and why
2. How to test
3. Any breaking changes
4. Related issues

Use the prompt

Include the diff and the reason for the change. Share which tests you actually ran so the description doesn't confuse suggested checks with completed testing.