gitlab 添加问题模板

本文介绍了如何在 GitLab 中添加问题和任务模板。操作包括在 .gitlab 目录下创建问题模板文件,如 .gitlab/issue_templates/ 或者 .gitlab/merge_request_templates/,并将文件推送到默认分支。使用模板时,选择相应的模板文件,其内容将被复制到描述字段,提供编辑或创建问题的便捷方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

gitlab 添加问题/任务模板

操作步骤:

  • 在项目中找到文件夹 .gitlab(和 .git 是在同一目录),创建文件夹 issue_templates
  • 在文件夹 issue_templates下添加一个.md的文件,如bug.md
  • 将添加的文件推送到服务器分支上,合并
  • 最后新建一个问题就可以看到标题左边就有一个模板的下拉框,里面就有一个选项 bug
    这样就可以了
gitlab对模板的帮助说明

Creating issue templates
Create a new Markdown (.md) file inside the .gitlab/issue_templates/
directory in your repository. Commit and push to your default branch.

Creating merge request templates
Similarly to issue templates, create a new Markdown (.md) file inside the
.gitlab/merge_request_templates/ directory in your repository. Commit and
push to your default branch.

Using the templates
Let’s take for example that you’ve created the file .gitlab/issue_template

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值