如何使用模板自动将问题分配给里程碑?
How can I assign an issue to a milestone automatically using templates?
我正在使用 GitLab 问题模板,它们运行良好。例如我在 .gitlab/issue_templates/foo.md
:
中有这个
# What is happening
# Share screenshots
[describe the issue]
/milestone 15
/confidential true
当我使用它时,它显示 headers 并且还将问题标记为机密,如 GitLab quick actions (FREE) 文档中所述:
Command
Issue
Merge request
Epic
Action
/confidential
{check-circle} Yes
{dotted-circle} No
{dotted-circle} No
Make confidential.
/label ~label1 ~label2
{check-circle} Yes
{check-circle} Yes
{check-circle} Yes
Add one or more labels. Label names can also start without a tilde (~), but mixed syntax is not supported.
/milestone %milestone
{check-circle} Yes
{check-circle} Yes
{dotted-circle} No
Set milestone.
但是,不起作用的部分应该是我引用的 ID 为 15 的里程碑“foo”。
如何自动分配名为“foo”的里程碑? /milestone <id>
还不够吗?
事实证明它很容易定义如下:
/milestone <name of the milestone>
没有 ID,只有名字。
所以你可以说:
/milestone bla
/milestone this is a milestone with spaces
(注意名字两边没有引号)
我正在使用 GitLab 问题模板,它们运行良好。例如我在 .gitlab/issue_templates/foo.md
:
# What is happening
# Share screenshots
[describe the issue]
/milestone 15
/confidential true
当我使用它时,它显示 headers 并且还将问题标记为机密,如 GitLab quick actions (FREE) 文档中所述:
Command | Issue | Merge request | Epic | Action |
---|---|---|---|---|
/confidential |
{check-circle} Yes | {dotted-circle} No | {dotted-circle} No | Make confidential. |
/label ~label1 ~label2 |
{check-circle} Yes | {check-circle} Yes | {check-circle} Yes | Add one or more labels. Label names can also start without a tilde (~), but mixed syntax is not supported. |
/milestone %milestone |
{check-circle} Yes | {check-circle} Yes | {dotted-circle} No | Set milestone. |
但是,不起作用的部分应该是我引用的 ID 为 15 的里程碑“foo”。
如何自动分配名为“foo”的里程碑? /milestone <id>
还不够吗?
事实证明它很容易定义如下:
/milestone <name of the milestone>
没有 ID,只有名字。
所以你可以说:
/milestone bla
/milestone this is a milestone with spaces
(注意名字两边没有引号)