我最近发现你可以从提交中关闭一个Gitlab问题。 例如: git commit -m "my commit name Fix #12"将关闭问题#12。
我也在问题评论中使用快速行动: /spend 1h 。
是否有可能将这两个功能混合在一起: git commit -m "my commit name Fix #12 /spend 1h" ? 我已经尝试过这个命令,否则它不是好语法,否则这个功能不存在。
I've recently discovered that you can close a Gitlab issue from a commit. For example : git commit -m "my commit name Fix #12" will close the issue #12.
I'm also using quick actions in issues comments : /spend 1h.
Is it possible to mix those two functionnalities in something like that : git commit -m "my commit name Fix #12 /spend 1h" ? I'v already tried this command, else it's not the good syntax, else this functionnality doesn't exist.
最满意答案
从官方文档 :
您可以在创建新问题或合并请求时以及在注释中输入这些命令。
和
每个命令应该在一个单独的行上,以便正确检测和执行。
因此,似乎它们只能用于问题,合并请求和注释。 它们也需要放在自己的线上。
From the official documentation:
You can enter these commands while creating a new issue or merge request, and in comments.
and
Each command should be on a separate line in order to be properly detected and executed.
So it would seem that they can only be used in the body of issues, merge requests, and comments. They also need to be placed on their own line.
更多推荐
发布评论