Gitlab:在提交注释中添加快速操作(Gitlab : add quick

编程入门 行业动态 更新时间:2024-10-26 02:33:20
Gitlab:在提交注释中添加快速操作(Gitlab : add quick-actions in commit comments)

我最近发现你可以从提交中关闭一个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.

更多推荐

本文发布于:2023-08-06 15:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1451526.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注释   快速   操作   Gitlab   add

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!