mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-10 16:12:29 +03:00
Only fetch 5 entries per page to limit GH API usage
This commit is contained in:
parent
266596f16b
commit
632bbd0a08
|
@ -39,7 +39,7 @@ def iter_recent_authors():
|
||||||
Use Github API to fetch recent authors rather than
|
Use Github API to fetch recent authors rather than
|
||||||
git CLI to work with Github usernames.
|
git CLI to work with Github usernames.
|
||||||
"""
|
"""
|
||||||
repo = Github().get_repo("pydanny/cookiecutter-django")
|
repo = Github(per_page=5).get_repo("pydanny/cookiecutter-django")
|
||||||
recent_pulls = repo.get_pulls(
|
recent_pulls = repo.get_pulls(
|
||||||
state="closed", sort="updated", direction="desc"
|
state="closed", sort="updated", direction="desc"
|
||||||
).get_page(0)
|
).get_page(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user