Issue closing pattern all tiersself-managed
When a commit or merge request resolves one or more issues, it is possible to automatically close these issues when the commit or merge request lands in the project’s default branch.
Change the issue closing pattern
The default issue closing pattern covers a wide range of words. You can change the pattern to suit your needs.
%{issue_ref}
. When testing your patterns,
replace this string with #\d+
, which matches only local issue references like #123
.To change the default issue closing pattern:
-
Edit
/etc/gitlab/gitlab.rb
and change thegitlab_rails['gitlab_issue_closing_pattern']
value:gitlab_rails['gitlab_issue_closing_pattern'] = /<regular_expression>/.source
-
Save the file and reconfigure GitLab:
sudo gitlab-ctl reconfigure