diff --git a/src/github.ts b/src/github.ts index ab2948c9c..23b9a1fe1 100644 --- a/src/github.ts +++ b/src/github.ts @@ -276,7 +276,7 @@ export class GitHub { async findMergedReleasePR( labels: string[], - perPage = 25 + perPage = 100 ): Promise { const pullsResponse = (await this.request( `GET /repos/:owner/:repo/pulls?state=closed&per_page=${perPage}${ @@ -475,9 +475,7 @@ export class GitHub { // pull-request body. if (openReleasePR && openReleasePR.body === options.body) { checkpoint( - `PR https://github.com/${this.owner}/${this.repo}/pull/${ - openReleasePR.number - } remained the same`, + `PR https://github.com/${this.owner}/${this.repo}/pull/${openReleasePR.number} remained the same`, CheckpointType.Failure ); return -1; diff --git a/test/release-pr.ts b/test/release-pr.ts index 738428822..d12cb7b1f 100644 --- a/test/release-pr.ts +++ b/test/release-pr.ts @@ -48,7 +48,7 @@ describe('GitHub', () => { const req = nock('https://api.github.com') // check to see if this PR was already landed and we're // just waiting on the autorelease. - .get('/repos/googleapis/release-please/pulls?state=closed&per_page=25') + .get('/repos/googleapis/release-please/pulls?state=closed&per_page=100') .reply(200, undefined) // fetch semver tags, this will be used to determine // the delta since the last release.