Skip to content

Commit

Permalink
chore: paginate the reactions Invoke task
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Mar 22, 2022
1 parent cbdea4d commit 610a884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def reactions(c):
https://docs.github.com/en/rest/reference/issues#get-an-issue
https://developer.github.com/changes/2016-05-12-reactions-api-preview/
"""
result = c.run("gh api -X GET 'repos/andreoliwa/nitpick/issues' | jq -r '.[].number'", pty=False)
result = c.run("gh api -X GET 'repos/andreoliwa/nitpick/issues' --paginate --jq '.[].number'", pty=False)
for issue in result.stdout.splitlines():
result_users = c.run(
f"gh api -X GET 'repos/andreoliwa/nitpick/issues/{int(issue)}/reactions'"
Expand Down

0 comments on commit 610a884

Please sign in to comment.