gitlab - 模板 - 仅限EE?
gitlab - templates -- EE only?
我正在研究 Gitlab 中的模板,其中描述字段可以有一个预定义的模板。但在 Gitlab CE 中找不到该功能。模板只能在 Gitlab 企业版中使用吗?
您可以使用描述模板。创建新问题或合并请求的用户可以 select 描述模板(特定于项目)。
您需要在项目存储库的 .gitlab/issue_templates/ 目录中创建一个 mardown 文件。提交并将此文件推送到您的默认分支。
然后您可以选择模板:
Using the template
更多信息在这里: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.
最新的 GitLab 14.8(2022 年 2 月)显示了所有 GitLab 层的此类模板:
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.
我正在研究 Gitlab 中的模板,其中描述字段可以有一个预定义的模板。但在 Gitlab CE 中找不到该功能。模板只能在 Gitlab 企业版中使用吗?
您可以使用描述模板。创建新问题或合并请求的用户可以 select 描述模板(特定于项目)。
您需要在项目存储库的 .gitlab/issue_templates/ 目录中创建一个 mardown 文件。提交并将此文件推送到您的默认分支。
然后您可以选择模板: Using the template
更多信息在这里: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.
最新的 GitLab 14.8(2022 年 2 月)显示了所有 GitLab 层的此类模板:
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 aDefault.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.