4

I created a project and the role is Maintainer.

When I want to create "default description template for merge request", I can not find text area.

enter image description here

Does anyone know why this is happening?

I do not want to use template(.gitlab/merge_request_templates/).

I have create.gitlab/merge_request_templates/Default.md.When I create new merge request, I can see this template.

But I want to have a default value without selecting any template.

Hsiao-I Yang
  • 65
  • 2
  • 10

1 Answers1

4

The OP 楊筱誼 confirms in the comments:

"Setting default template" is only available if you have a Starter (or higher) license for a self-managed installation of GitLab or Bronze for GitLab.com.

My trial license seems to have expired, so it cannot be displayed.


I can not find text area.

Precisely because, as described in the official documentation "Description templates", you do not have yet created a .md file in the .gitlab/merge_request_templates/ directory of your repository.

Once you have created, committed and push that file, then you will see that field:

https://docs.gitlab.com/ee/user/project/img/description_templates_merge_request_settings.png

I do not want to use template(.gitlab/merge_request_templates/).

Then... you won't see that field.

Don't forget the visibility:

The visibility of issues and/or merge requests should be set to either “Everyone with access” or “Only Project Members” in your project’s Settings / Visibility, project features, permissions section, otherwise the template text areas won’t show.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thank you for your reply. But I have created ".gitlab/merge_request_templates/Code_Review_Checklist.md". Still can't see text area. – Hsiao-I Yang Jun 02 '20 at 06:59
  • @楊筱誼 Did you have pushed it? On the master branch? – VonC Jun 02 '20 at 07:07
  • Yes. I have pushed it. – Hsiao-I Yang Jun 02 '20 at 07:10
  • @楊筱誼 To the master branch? Is master your default branch for your repository GitLab? (https://stackoverflow.com/a/57660969/6309) – VonC Jun 02 '20 at 07:57
  • I have pushed it to the master branch. My default branch is master. When I create new merge request, I can see this template. But I want to have a default value without selecting any template. Thanks for your help... (☍﹏⁰) – Hsiao-I Yang Jun 02 '20 at 08:18
  • @楊筱誼 Is the visibility properly set? "The visibility of issues and/or merge requests should be set to either “Everyone with access” or “Only Project Members” in your project’s Settings / Visibility, project features, permissions section, otherwise the template text areas won’t show" – VonC Jun 02 '20 at 08:39
  • My Project visibility is private. The visibility of merge requests is "Only Project Members". I even modified the visibility, and no text areas appeared. – Hsiao-I Yang Jun 02 '20 at 08:52
  • @楊筱誼 Strange: that might warrant a support ticket: https://support.gitlab.com/hc/en-us/requests/new – VonC Jun 02 '20 at 08:54
  • Okay. Thanks a lots. :") – Hsiao-I Yang Jun 02 '20 at 09:00
  • @楊筱誼 Let me know if you have any answer from the GitLab support team. – VonC Jun 02 '20 at 09:01
  • Hi @VonC, "Setting default template" is only available if you have a Starter (or higher) license for a self-managed installation of GitLab or Bronze for GitLab.com. My trial license seems to have expired, so it cannot be displayed. – Hsiao-I Yang Jun 04 '20 at 01:19
  • @楊筱誼 Thank you for your feedback: I have edited the answer accordingly. – VonC Jun 04 '20 at 05:07
  • ah, I was missing the dot '.' before gitlab – Noman Gul Jul 11 '23 at 11:32