Skip to content
Snippets Groups Projects
Commit 66723811 authored by Quang-Minh Nguyen's avatar Quang-Minh Nguyen
Browse files

Clean up fallbacks in Emails::MergeRequests#push_to_merge_request_email

Changelog: other
Issue: #356099
parent 7c6f055e
No related branches found
No related tags found
1 merge request!91039Clean up backward compatibility codes for !82801
......@@ -15,15 +15,15 @@ def new_mention_in_merge_request_email(recipient_id, merge_request_id, updated_b
end
# existing_commits - an array containing the first and last commits
def push_to_merge_request_email(recipient_id, merge_request_id, updated_by_user_id, reason = nil, new_commits: [], total_new_commits_count: nil, existing_commits: [], total_existing_commits_count: nil)
def push_to_merge_request_email(recipient_id, merge_request_id, updated_by_user_id, reason = nil, new_commits:, total_new_commits_count:, existing_commits:, total_existing_commits_count:)
setup_merge_request_mail(merge_request_id, recipient_id)
@new_commits = new_commits
@total_new_commits_count = total_new_commits_count || @new_commits.length
@total_new_commits_count = total_new_commits_count
@total_stripped_new_commits_count = @total_new_commits_count - @new_commits.length
@existing_commits = existing_commits
@total_existing_commits_count = total_existing_commits_count || @existing_commits.length
@total_existing_commits_count = total_existing_commits_count
@updated_by_user = User.find(updated_by_user_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment