mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 13:14:28 +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
|
||||
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(
|
||||
state="closed", sort="updated", direction="desc"
|
||||
).get_page(0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user