2020-07-10 14:09:45 -04:00
|
|
|
#{sanitize_name(@updated_by_user.name)} pushed new commits to merge request #{@merge_request.to_reference}
|
|
|
|
|
|
|
|
Merge Request URL: #{project_merge_request_url(@merge_request.target_project, @merge_request)}
|
2017-07-25 07:56:09 -04:00
|
|
|
\
|
|
|
|
- if @existing_commits.any?
|
|
|
|
- count = @existing_commits.size
|
2018-04-08 01:37:32 -04:00
|
|
|
- commits_id = count == 1 ? @existing_commits.first[:short_id] : "#{@existing_commits.first[:short_id]}...#{@existing_commits.last[:short_id]}"
|
2017-07-25 07:56:09 -04:00
|
|
|
- commits_text = "#{count} commit".pluralize(count)
|
|
|
|
|
|
|
|
* #{commits_id} - #{commits_text} from branch `#{@merge_request.target_branch}`
|
|
|
|
\
|
|
|
|
- @new_commits.each do |commit|
|
|
|
|
* #{commit[:short_id]} - #{raw commit[:title]}
|