Skip to content

Commit

Permalink
Remove empty entries for commits that do not have Co-authors
Browse files Browse the repository at this point in the history
  • Loading branch information
lafiona committed Mar 23, 2022
1 parent 998e81a commit 3dc39a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/merge_arrow_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def merge(self):
commit_co_authors = run_cmd(['git', 'log', 'HEAD..%s' % pr_branch_name,
'--pretty=%(trailers:key=Co-authored-by,'
'valueonly)']).split("\n")
commit_co_authors = list(filter(None, commit_co_authors))
all_commit_authors = commit_authors + commit_co_authors
distinct_authors = sorted(set(all_commit_authors),
key=lambda x: commit_authors.count(x),
Expand Down

0 comments on commit 3dc39a0

Please sign in to comment.