AnswerDotAI / AnswerDotAI/ghapi
paged loop forever when used with repos.get_commit
Open
- Dominant language
- Python
- Stars
- 685
- Forks
- 70
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
The following code will loop forever:
```python
api = GhApi(owner="fastai", repo="ghapi", token=os.environ["GH_TOKEN"])
pages = paged(api.repos.get_commit, "d8fb5c28e14f4bcbb0691e71b4ef7d55228a81ac")
for page in pages:
print("foo")
```
```
foo
foo
foo
```
Whatever the commit I target, I got the same behavior.
I’m doing something wrong, or it’s a real bug?
Contributor guide
Assessment
This issue has not been assessed yet.