Commit a11aa9bd authored by Douwe Maan's avatar Douwe Maan

Merge branch 'show-position-of-merge-train-in-system-notes' into 'master'

Show position of merge trains in system notes

Closes #12265

See merge request gitlab-org/gitlab-ee!14398
parents ae7f0b8c 0361abd2
......@@ -197,7 +197,7 @@ module EE
body = if index == 0
'started a merge train'
else
"added this merge request to the merge train at index #{index}"
"added this merge request to the merge train at position #{index + 1}"
end
create_note(NoteSummary.new(noteable, project, author, body, action: 'merge'))
......
---
title: Show position of merge trains in system notes
merge_request: 14398
author:
type: fixed
......@@ -343,7 +343,7 @@ describe SystemNoteService do
end
it "posts the 'merge train' system note" do
expect(subject.note).to eq('added this merge request to the merge train at index 1')
expect(subject.note).to eq('added this merge request to the merge train at position 2')
end
end
end
......
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