Commit 01dd6b7f authored by Donald Cook's avatar Donald Cook

Conditionally use `Closes` depending on autoclose

parent affbcb92
...@@ -220,7 +220,7 @@ module MergeRequests ...@@ -220,7 +220,7 @@ module MergeRequests
def append_closes_description def append_closes_description
return unless issue&.to_reference.present? return unless issue&.to_reference.present?
closes_issue = "Closes #{issue.to_reference}" closes_issue = "#{target_project.autoclose_referenced_issues ? 'Closes' : 'Related to'} #{issue.to_reference}"
if description.present? if description.present?
descr_parts = [merge_request.description, closes_issue] descr_parts = [merge_request.description, closes_issue]
......
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