Commit a65aa3c6 authored by Robert Speicher's avatar Robert Speicher

Merge branch '19754-disable-automatic-issue-closing-pattern-per-project' into 'master'

Conditionally use `Closes` depending on autoclose

See merge request gitlab-org/gitlab!28009
parents 2a59cde6 01dd6b7f
......@@ -220,7 +220,7 @@ module MergeRequests
def append_closes_description
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?
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