mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
Merge pull request #6719 from ulyssessouza/fix-release-script
Fix release script for null user
This commit is contained in:
commit
e1baa90f6b
@ -220,6 +220,8 @@ def get_contributors(pr_data):
|
|||||||
commits = pr_data.get_commits()
|
commits = pr_data.get_commits()
|
||||||
authors = {}
|
authors = {}
|
||||||
for commit in commits:
|
for commit in commits:
|
||||||
|
if not commit or not commit.author or not commit.author.login:
|
||||||
|
continue
|
||||||
author = commit.author.login
|
author = commit.author.login
|
||||||
authors[author] = authors.get(author, 0) + 1
|
authors[author] = authors.get(author, 0) + 1
|
||||||
return [x[0] for x in sorted(list(authors.items()), key=lambda x: x[1])]
|
return [x[0] for x in sorted(list(authors.items()), key=lambda x: x[1])]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user