AnswerDotAI / AnswerDotAI/ghapi

Events api doesn't use constructor values

Open
#39 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
685
Forks
70
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

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.