We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9ae6c commit 962e94bCopy full SHA for 962e94b
1 file changed
src/githubHelper.ts
@@ -230,13 +230,16 @@ export class GithubHelper {
230
try {
231
await utils.sleep(this.delayInMs);
232
// get an array of GitHub labels for the new repo
233
- let result = await this.githubApi.issues.listLabelsForRepo({
234
- owner: this.githubOwner,
235
- repo: this.githubRepo,
236
- });
237
-
238
- // extract the label name and put into a new array
239
- let labels = result.data.map(x => x.name);
+ const labels = await this.githubApi.paginate(
+ this.githubApi.issues.listLabelsForRepo,
+ {
+ owner: this.githubOwner,
+ repo: this.githubRepo,
+ per_page: 100,
+ },
240
+ // extract the label name and put into a new array
241
+ response => response.data.map(label => label.name)
242
+ );
243
244
return labels;
245
} catch (err) {
0 commit comments