GitHub API: using 'repo' scope, but still can't see private repos

后端 未结 5 848
眼角桃花
眼角桃花 2020-12-15 05:32

Per the GitHub API docs, I am requesting the repo scope which gives access to private repositories.

The user is presented with the following dialog, which also ment

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 06:06

    From testing:

    • GETing /users/someusername/repos doesn't show private repos (even if it's the user whose oauth access token you're using).

    • GETing /user/repos show private repos.

    This isn't documented in the GitHub API docs at present, I just found out via testing.

    Thanks to @ivanzuzak for suggesting to look at the endpoint.

提交回复
热议问题