Only consider users of type 'User'

This commit is contained in:
Bruno Alla 2020-08-12 13:11:17 +01:00
parent 6ce39c7667
commit 266596f16b

View File

@ -44,7 +44,11 @@ def iter_recent_authors():
state="closed", sort="updated", direction="desc"
).get_page(0)
for pull in recent_pulls:
if pull.merged and pull.user.login not in BOT_LOGINS:
if (
pull.merged
and pull.user.type == "User"
and pull.user.login not in BOT_LOGINS
):
yield pull.user