BigW Consortium Gitlab

Commit 41815285 by Gabriel Gizotti

Better `Closes issues` text for MergeRequest#merge_commit_message

parent e97c7100
......@@ -637,7 +637,8 @@ class MergeRequest < ActiveRecord::Base
message << "#{title}\n\n"
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
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