Skip to content

Commit 122d7e3

Browse files
committed
Ensure to load all repository labels
1 parent a2e8dc3 commit 122d7e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reporter/github/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ export default class GitHub {
9999
}
100100

101101
async getRepositoryLabels() {
102-
const { data: labels } = await this.octokit.request('GET /repos/{owner}/{repo}/labels', { ...this.commonParams });
102+
const labels = await this.octokit.paginate('GET /repos/{owner}/{repo}/labels', {
103+
...this.commonParams,
104+
per_page: 100,
105+
});
103106

104107
return labels;
105108
}

0 commit comments

Comments
 (0)