Commit 41815285 authored by Gabriel Gizotti's avatar Gabriel Gizotti

Better `Closes issues` text for MergeRequest#merge_commit_message

parent e97c7100
...@@ -637,7 +637,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -637,7 +637,8 @@ class MergeRequest < ActiveRecord::Base
message << "#{title}\n\n" message << "#{title}\n\n"
if closes_issues_references.present? if closes_issues_references.present?
message << "Closed Issues: #{closes_issues_references.join(", ")}\n\n" issue_text = 'issue'.pluralize(closes_issues_references.size)
message << "Closes #{issue_text} #{closes_issues_references.to_sentence}\n\n"
end end
message << "#{description}\n\n" if include_description && description.present? message << "#{description}\n\n" if include_description && description.present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment