Skip to content

Cannot get user_issues #1841

@yuyan7

Description

@yuyan7

I'm trying to fetch user_issues but this get /issues.

It needs to be /user/issues.

>>> import github
>>> github.enable_console_debug_logging()
>>> g = github.Github('oauth token')
>>> u = g.get_user()
>>> assert u.get_user_issues().totalCount == 3
GET https://api.github.com/issues?per_page=1 {'Authorization': 'token (oauth token removed)', 'User-Agent': 'PyGithub/Python'} None ==> 200 {'date': 'Fri, 05 Feb 2021 16:41:55 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '2', 'server': 'GitHub.com', 'cache-control': 'private, max-age=60, s-maxage=60', 'vary': 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding', 'x-oauth-scopes': 'repo', 'x-accepted-oauth-scopes': '', 'x-github-media-type': 'github.v3; format=json', ...} []

Version 1.54.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions