3
是否可以从提交消息中引用Gitlab中的问题? 我还没有在网上找到任何东西。从gitlab中的提交消息引用问题
是否可以从提交消息中引用Gitlab中的问题? 我还没有在网上找到任何东西。从gitlab中的提交消息引用问题
应该有一种方法可以从提交消息中引用GitLab问题,只需使用#xx(问题标识)即可。
考虑 “Default closing pattern value”
例如以下提交信息:
Awesome commit message
Fix #20, Fixes #21 and Closes group/otherproject#22.
This commit is also related to #17 and fixes #18, #19
and https://gitlab.example.com/group/otherproject/issues/23.
将关闭#18,#19,#20,和#21中的项目此提交是推到,以及组/其他项目中的#22和#23。 #17将不会被关闭,因为它与模式不匹配。它适用于多行提交消息以及与git commit -m一起使用时的单行提交消息。
参见 “Tutorial: It's all connected in GitLab”
添加引用发行或合并请求说明或注释。
这将更新有关任何相关信息的问题。
- 要引用的一个问题:
#123
- 要引用MR:
!123
- 要引用一个片段
$123