今天才知道在gitlab中,如果要关闭一个issues 可以在提交的消息中写
Fixed #1 XXXXXXX 来关闭某一个issue、写Closes #1 xxxxxxx 也是可以的,默认支持的格式是这两种,也可以重新配置格式。
下面是官方的说明:
Issue closing pattern
By default you can close issues from commit messages by saying ‘Closes #12’ or ‘Fixed #101’.
If you want to customize the message please do so in gitlab.yml