AnswerDotAI / AnswerDotAI/ghapi
Events api doesn't use constructor values
- Dominant language
- Python
- Stars
- 686
- Forks
- 69
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
When calling the events api, none of the values passed into the constructor are included
EG given two api objects:
```
owned_api = GhApi(username='gone', token=github_token)
global_api = GHApi(token=github_token)
```
I would expect these two calls to be equivalent:
```
owned_api.list_events()
global_api.list_events(username='gone')
```
But get them to be the same, I need to pass the username into both list_events calls.
Contributor guide
Research direction
Reproduce the two GhApi/GHApi constructor and list_events calls shown in the issue, then trace how constructor values are handled by the events API. Done means an instance created with username='gone' produces the same result from list_events() as list_events(username='gone').
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, python
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100