Skip to content

Commit

Permalink
Display all issues with a given label. (publiclab#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh570 authored and jywarren committed Nov 14, 2018
1 parent 4b964c3 commit b47d680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
toolbox = CommunityToolbox(org, repo);

if(repo==='all') {
toolbox.getIssuesForOrg(org, { qs: { labels: orgLabels }})
toolbox.getIssuesForOrg(org, { qs: { labels: orgLabels, per_page: 100 }})
.then(function gotIssuesForOrg(orgIssuesObject) {
let orgIssues = JSON.parse(orgIssuesObject).items;
orgIssues.forEach(function mapToEachIssue(issue) {
Expand All @@ -51,7 +51,7 @@
});
} else {
toolbox.api.Issues
.getIssuesForRepo(org, repo, { qs: { labels: labels } })
.getIssuesForRepo(org, repo, { qs: { labels: labels, per_page: 100 } })
.then(function(issues) {
issues.forEach(function(issue) {
toolbox.ui.insertIssue(issue, '.issues');
Expand Down

0 comments on commit b47d680

Please sign in to comment.