Commit bbd8bba5cb5ba91a0fd9fe832e022bf6eef9615a
1 parent
c720190f
Exists in
master
Fixes #232.
Updated gitlab.yml.erb template to include a parameter for issue_closing_pattern. I'm very new to ruby, so enhancements on this are welcome! * Note: Backslashes must be escaped in the gitlab.rb string.
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
@@ -64,6 +64,9 @@ production: &base | @@ -64,6 +64,9 @@ production: &base | ||
64 | # When not specified the default issue_closing_pattern as specified below will be used. | 64 | # When not specified the default issue_closing_pattern as specified below will be used. |
65 | # Tip: you can test your closing pattern at http://rubular.com | 65 | # Tip: you can test your closing pattern at http://rubular.com |
66 | # issue_closing_pattern: '([Cc]lose[sd]|[Ff]ixe[sd]) +#\d+' | 66 | # issue_closing_pattern: '([Cc]lose[sd]|[Ff]ixe[sd]) +#\d+' |
67 | + <% if !@gitlab_issue_closing_pattern.nil? %> | ||
68 | + issue_closing_pattern: '<%= @gitlab_issue_closing_pattern %>' | ||
69 | + <% end %> | ||
67 | 70 | ||
68 | ## Default project features settings | 71 | ## Default project features settings |
69 | default_projects_features: | 72 | default_projects_features: |