diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-28 03:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-28 03:09:28 +0300 |
commit | 9b07a0e87250887c6fc30911f84fd7e885f56245 (patch) | |
tree | 9d2831af5ee23679d5d715f69c41118c75026f1b /app/mailers | |
parent | 441dc12073755df98808a37512062451fa184964 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/merge_requests.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/emails/merge_requests.rb b/app/mailers/emails/merge_requests.rb index 83d37a365de..6a2b447f4a0 100644 --- a/app/mailers/emails/merge_requests.rb +++ b/app/mailers/emails/merge_requests.rb @@ -15,15 +15,15 @@ module Emails 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) |