Skip to content
Snippets Groups Projects
Commit 62333808 authored by Stan Hu's avatar Stan Hu
Browse files

Merge branch 'qmnguyen0711/356099-clean-up-backward-compatibility-codes-for-82801' into 'master'

Clean up backward compatibility codes for !82801

See merge request !91039
parents e50d1653 66723811
No related branches found
No related tags found
1 merge request!91039Clean up backward compatibility codes for !82801
Pipeline #574392872 passed with warnings
......@@ -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