2017-07-25 61 views

回答

5

應該有一種方法可以從提交消息中引用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