Skip to content

Add issue_closing_pattern to gitlab.rb

It would be nice to be able to add a multi-issue closing pattern, such as the one mentioned in the gitlab feedback forums here:

http://feedback.gitlab.com/forums/176466-general/suggestions/3692754-linking-issues-from-comments-and-automatically-clo

In short, I'd really like to have the following gitlab.rb snippet work:

# Alter the issue closing pattern to allow multiple issues to be closed with a single commit
# * Note: Backslashes in gitlab_issue_closing_pattern must be escaped.
gitlab_rails['gitlab_issue_closing_pattern'] = '([Cc]los(e([sd])?|ing)|[Ff]ix((e[sd])?|ing)) +((issue(s)? )?#\\d+((,)? (and )?)?)+'