Commit c44c5f5faa39efdee1100eba88116c640e2f64ce
Exists in
master
and in
4 other branches
Merge branch 'broader-message-matching' of /home/git/repositories/gitlab/gitlabhq
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
config/gitlab.yml.example
... | ... | @@ -56,9 +56,10 @@ production: &base |
56 | 56 | # signup_enabled: true |
57 | 57 | |
58 | 58 | ## Automatic issue closing |
59 | - # If a commit message matches this regular express, all issues referenced from the matched text will be closed | |
60 | - # if it's pushed to a project's default branch. | |
61 | - # issue_closing_pattern: ^([Cc]loses|[Ff]ixes) +#\d+ | |
59 | + # If a commit message matches this regular expression, all issues referenced from the matched text will be closed. | |
60 | + # This happends when the commit is pushed or merged into the default branch of a project. | |
61 | + # When not specified the default issue_closing_pattern as specified below will be used. | |
62 | + # issue_closing_pattern: ([Cc]loses|[Ff]ixes) +#\d+ | |
62 | 63 | |
63 | 64 | ## Default project features settings |
64 | 65 | default_projects_features: | ... | ... |
config/initializers/1_settings.rb
... | ... | @@ -69,7 +69,7 @@ rescue ArgumentError # no user configured |
69 | 69 | end |
70 | 70 | Settings.gitlab['signup_enabled'] ||= false |
71 | 71 | Settings.gitlab['username_changing_enabled'] = true if Settings.gitlab['username_changing_enabled'].nil? |
72 | -Settings.gitlab['issue_closing_pattern'] = '^([Cc]loses|[Ff]ixes) #(\d+)' if Settings.gitlab['issue_closing_pattern'].nil? | |
72 | +Settings.gitlab['issue_closing_pattern'] = '([Cc]loses|[Ff]ixes) #(\d+)' if Settings.gitlab['issue_closing_pattern'].nil? | |
73 | 73 | Settings.gitlab['default_projects_features'] ||= {} |
74 | 74 | Settings.gitlab.default_projects_features['issues'] = true if Settings.gitlab.default_projects_features['issues'].nil? |
75 | 75 | Settings.gitlab.default_projects_features['merge_requests'] = true if Settings.gitlab.default_projects_features['merge_requests'].nil? | ... | ... |