Skip to content

Commit

Permalink
Old pull requests, sort within the same count, as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpenny committed Nov 19, 2021
1 parent 7f37328 commit 879d569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion old_prs_by_author.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

counts
.sort_by { |_, val| -val }
.sort_by { |key, val| [-val, key] }
.each do |(user, login), count|
puts "#{count.to_s.rjust(2)} #{user.ljust(42)} https://github.com/#{ARGV[0]}/pulls?q=is%3Aopen+is%3Apr+author%3A#{login}+updated%3A%3C#{ARGV[1]}"
end
Expand Down

0 comments on commit 879d569

Please sign in to comment.