Commit bbd8bba5cb5ba91a0fd9fe832e022bf6eef9615a

Authored by Mike Hill
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.
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: