Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Show the first four eligible PRs by maturity rather than submission #689

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/services/pull_request_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def eligible_prs
end

def scoring_pull_requests
eligible_prs.first(4)
eligible_prs.sort_by { |pr| [pr.:eligible?, pr.waiting_since] }.first(4)
end

def scoring_pull_requests_receipt
Expand Down