AnswerDotAI / AnswerDotAI/ghapi

paged loop forever when used with repos.get_commit

Open
#98 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.