diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-09-06 14:54:09 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-09-06 14:54:09 +0000 |
commit | 607a2562380515ddb2909db9d0486b022342add9 (patch) | |
tree | c81e79609b6eaf92e1311b5fb6e37f7606fa8989 /doc | |
parent | bac9a1dde1e75d057e212ab5d3b9b478d3981e1d (diff) | |
parent | c6cfc369db3efc4b63cd1f95080e5e0742f4ca47 (diff) | |
download | gitlab-ce-607a2562380515ddb2909db9d0486b022342add9.tar.gz |
Merge branch 'fix-closing-issues' into 'master'
Fix closing issue default pattern
Closes #51085
See merge request gitlab-org/gitlab-ce!21531
Diffstat (limited to 'doc')
-rw-r--r-- | doc/administration/issue_closing_pattern.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/administration/issue_closing_pattern.md b/doc/administration/issue_closing_pattern.md index 466bb1f851e..35f25e55414 100644 --- a/doc/administration/issue_closing_pattern.md +++ b/doc/administration/issue_closing_pattern.md @@ -28,7 +28,7 @@ Because Rubular doesn't understand `%{issue_ref}`, you can replace this by expression of your liking: ```ruby - gitlab_rails['gitlab_issue_closing_pattern'] = "((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)" + gitlab_rails['gitlab_issue_closing_pattern'] = "\b((?:[Cc]los(?:e[sd]|ing)|\b[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)" ``` 1. [Reconfigure] GitLab for the changes to take effect. @@ -38,7 +38,7 @@ Because Rubular doesn't understand `%{issue_ref}`, you can replace this by 1. Change the value of `issue_closing_pattern`: ```yaml - issue_closing_pattern: "((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)" + issue_closing_pattern: "\b((?:[Cc]los(?:e[sd]|ing)|\b[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?))+)" ``` 1. [Restart] GitLab for the changes to take effect. |