javascript - How can I get all the github issues using github API? -
this question has answer here:
- github search api return 30 results 1 answer
hi trying number of issues of repo using angular , github rest api, problem 30 issues though more issues there in repo. please me idea. use below rest api issues.
https://api.github.com/repos/vmg/redcarpet/issues?state=all
updated response
if want number of issues think closest you'll get repo endpoint:
get /repos/:owner/:repo
the json response endpoint includes 2 relevant keys:
has_issues
,true
orfalse
, andopen_issues_count
, should give number of open issues.
i'm not sure of way number of issues including ones aren't open.
original response
you'll need paginate:
requests return multiple items paginated 30 items default. can specify further pages
?page
parameter. resources, can set custom page size 100?per_page
parameter. note technical reasons not endpoints respect?per_page
parameter, see events example.$ curl 'https://api.github.com/user/repos?page=2&per_page=100'
Comments
Post a Comment