mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Only consider users of type 'User'
This commit is contained in:
parent
6ce39c7667
commit
266596f16b
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user