Comment templates

Version history
On self-managed GitLab, by default this feature is available. To hide the feature, an administrator can disable the feature flag named saved_replies. On GitLab.com, this feature is available.

With comment templates, create and reuse text for any text area in:

  • Merge requests, including diffs.
  • Issues, including design management comments.
  • Epics.
  • Work items.

Comment templates can be small, like approving a merge request and unassigning yourself from it, or large, like chunks of boilerplate text you use frequently:

Comment templates dropdown list

Use comment templates in a text area

To include the text of a comment template in your comment:

  1. In the editor toolbar for your comment, select Comment templates ().
  2. Select your desired comment template.

Create comment templates

To create a comment template for future use:

  1. On the left sidebar, select your avatar.
  2. From the dropdown list, select Preferences.
  3. On the left sidebar, select Comment templates ().
  4. Select Add new.
  5. Provide a Name for your comment template.
  6. Enter the Content of your reply. You can use any formatting you use in other GitLab text areas.
  7. Select Save, and the page reloads with your comment template shown.

View your comment templates

To go to your comment templates:

  1. On the left sidebar, select your avatar.
  2. From the dropdown list, select Preferences.
  3. On the left sidebar, select Comment templates ().
  4. Scroll to My comment templates.

Edit or delete comment templates

To edit or delete a previously comment template:

  1. On the left sidebar, select your avatar.
  2. From the dropdown list, select Preferences.
  3. On the left sidebar, select Comment templates ().
  4. Scroll to My comment templates, and identify the comment template you want to edit.
  5. To edit, select Edit ().
  6. To delete, select Delete (), then select Delete again from the modal window.