gitlab 添加问题模板

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/king_hh/article/details/94600807

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_templates/Bug.md.
This will enable the Bug dropdown option when creating or editing issues. When
Bug is selected, the content from the Bug.md template file will be copied
to the issue description field. The ‘Reset template’ button will discard any
changes you made after picking the template and return it to its initial status.

展开阅读全文

没有更多推荐了,返回首页