Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-04-02 14:01:07 +0300
committerNick Thomas <nick@gitlab.com>2019-04-02 14:01:07 +0300
commit351b39f172bf77f4eb0e84fb2e5a71af9fe72348 (patch)
tree6ae773097df4469714b0e2e5a7893f760d174f3f /app/models/commit_collection.rb
parentf21f93f904505a5c5041a2e0f040fdad7107d3df (diff)
Backport splitting approval changes from CE
Author and committers approvals are split in EE This commit provides backports for those changes This reverts commit 886f00bcba23d67e2c86591c2eb5359ef457a2f9.
Diffstat (limited to 'app/models/commit_collection.rb')
-rw-r--r--app/models/commit_collection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit_collection.rb b/app/models/commit_collection.rb
index 52524456439..e8df46e1cc3 100644
--- a/app/models/commit_collection.rb
+++ b/app/models/commit_collection.rb
@@ -20,8 +20,8 @@ class CommitCollection
commits.each(&block)
end
- def authors
- emails = without_merge_commits.map(&:author_email).uniq
+ def committers
+ emails = without_merge_commits.map(&:committer_email).uniq
User.by_any_email(emails)
end