Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Events api doesn't use constructor values

Open
#39 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, python

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.

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.

Dominant language
Python
Stars
687
Forks
69
Avg merge
1m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/ghapi

All issues in AnswerDotAI/ghapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.