diff options
author | jubianchi <contact@jubianchi.fr> | 2014-09-17 19:08:35 +0200 |
---|---|---|
committer | jubianchi <contact@jubianchi.fr> | 2015-01-20 10:45:48 +0100 |
commit | b21a2d821a4e16aba1609dfa1e01ba455e8ccd8f (patch) | |
tree | bc17b71af51eebc70df294422bc7acebf5e30506 /config/initializers | |
parent | 0af2a161fa55a4abd7f8248b25a7361b209ecc4a (diff) | |
download | gitlab-ce-b21a2d821a4e16aba1609dfa1e01ba455e8ccd8f.tar.gz |
Allow commit messages to close several issues at once (thanks @123Haynes
for his work and help)
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/1_settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index cdb958aa6a6..1ec842761ff 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -109,7 +109,7 @@ Settings.gitlab['signup_enabled'] ||= true if Settings.gitlab['signup_enabled']. Settings.gitlab['signin_enabled'] ||= true if Settings.gitlab['signin_enabled'].nil? Settings.gitlab['restricted_visibility_levels'] = Settings.send(:verify_constant_array, Gitlab::VisibilityLevel, Settings.gitlab['restricted_visibility_levels'], []) Settings.gitlab['username_changing_enabled'] = true if Settings.gitlab['username_changing_enabled'].nil? -Settings.gitlab['issue_closing_pattern'] = '([Cc]lose[sd]|[Ff]ixe[sd]) #(\d+)' if Settings.gitlab['issue_closing_pattern'].nil? +Settings.gitlab['issue_closing_pattern'] = '((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?#\d+(?:(?:, *| +and +)?))+)' if Settings.gitlab['issue_closing_pattern'].nil? Settings.gitlab['default_projects_features'] ||= {} Settings.gitlab['webhook_timeout'] ||= 10 Settings.gitlab.default_projects_features['issues'] = true if Settings.gitlab.default_projects_features['issues'].nil? |