John
John

Reputation: 1773

gitlab - templates -- EE only?

I was investigating templates in Gitlab where the description field can have a predefined template. But could not find the feature in Gitlab CE. Are templates only available in Gitlab enterprise?

Upvotes: 2

Views: 4281

Answers (2)

VonC
VonC

Reputation: 1323115

The latest GitLab 14.8 (February 2022) shows such templates for all GitLab tiers:

Add default issue and merge request templates in a project’s repository

In addition to defining default issue and merge request description templates in project settings, you can now set default templates in the .gitlab directory of a project’s repository. Do it by creating a Default.md file in the issue or merge request templates folders. If default templates exist in both the project’s settings and in the repository, the template in the settings takes precedence.

Thanks for the contribution @davebarr!

See Documentation and Issue.

Upvotes: 0

sebclick
sebclick

Reputation: 36

You can use the description templates. Users that create a new issue or merge request can select a description template (specific to a project).

You need to create a mardown file inside the .gitlab/issue_templates/ directory in your project repository. Commit and push this file to your default branch.

Then you can choose template : Using the template

More information here : http://docs.gitlab.com/ce/user/project/description_templates.html

With GitLab 8.11, we're bringing the ability to create multiple templates (for instance, one for feature proposals, another for bugs) to GitLab.com, GitLab CE, and EE.

Upvotes: 2

Related Questions