javascript - How can I get all the github issues using github API? -


this question has answer here:

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 or false, and
  • open_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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -