Josh
Josh

Reputation: 1718

GitHub API v3 get all issues for user

I am currently developing a project using githubs v3 api and I am trying to find a way to get all issues across all repositories a user owns and is watching. How can I do that? The /user/issues and /issues only returns issues that a person is assigned to.

Upvotes: 2

Views: 1647

Answers (1)

Max Wofford
Max Wofford

Reputation: 253

The endpoint you are using is correct:

/api.github.com/user/issues

According to the GitHub API page on issues, you can get all issues a user is subscribed to by including the filter parameter set to subscribed with your request.

You can get all issues a user is subscribed to at

/api.github.com/user/issues?filter=subscribed

Upvotes: 5

Related Questions