Reputation: 253
How can I find all the issues closed by a particular user. GitHub's issues API doesn't support this as a query.
I can scrape this data, but I'd much prefer to get this through their API.
EDIT: I need all closed issues by a user for all time.
Upvotes: 3
Views: 2149
Reputation: 20399
Closed issues manifest themselves as issue events in the GitHub API. To access all events, use this pattern with the GitHub API:
/api.github.com/users/username/events
For example, to see all of my events: https://api.github.com/users/maxlaumeister/events
To get a list of all the issues the user has closed, filter the JSON response and discard all events except those with "type": "IssuesEvent"
and "payload": { "action": "closed", ... }
.
GitHub API page on IssuesEvents
Upvotes: 3