Skip to content

Commit

Permalink
Merge branch 'main' into joss
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Nov 17, 2023
2 parents 79cc719 + bbbc8ea commit 7450733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/repo_checks_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def repo_summary
def detect_languages
repo = Rugged::Repository.new(path)
project = Linguist::Repository.new(repo, repo.head.target_id)
ordered_languages = project.languages.sort_by { |_, size| size }.reverse.first(3)
ordered_languages = project.languages.sort_by { |_, size| size }.reverse
top_3 = ordered_languages.first(3).map {|l,s| l}
label_issue(top_3) unless top_3.empty?
end
Expand Down

0 comments on commit 7450733

Please sign in to comment.