Skip to content

Commit

Permalink
fix(github-release): increasae page size finding release (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jan 12, 2021
1 parent 0d63813 commit c156950
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/github-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export class GitHubRelease {

// In most configurations, createRelease() should be called close to when
// a release PR is merged, e.g., a GitHub action that kicks off this
// workflow on merge. For tis reason, we can pull a fairly small number of PRs:
const pageSize = 25;
// workflow on merge. For this reason, we can pull a fairly small number of PRs:
const pageSize = 50;
const gitHubReleasePR = await this.gh.findMergedReleasePR(
this.labels,
pageSize,
Expand Down
10 changes: 5 additions & 5 deletions test/github-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('GitHubRelease', () => {
.get('/repos/googleapis/foo')
.reply(200, repoInfo)
.get(
'/repos/googleapis/foo/pulls?state=closed&per_page=25&sort=merged_at&direction=desc'
'/repos/googleapis/foo/pulls?state=closed&per_page=50&sort=merged_at&direction=desc'
)
.reply(200, [
{
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('GitHubRelease', () => {
.get('/repos/googleapis/foo')
.reply(200, repoInfo)
.get(
'/repos/googleapis/foo/pulls?state=closed&per_page=25&sort=merged_at&direction=desc'
'/repos/googleapis/foo/pulls?state=closed&per_page=50&sort=merged_at&direction=desc'
)
.reply(200, [
{
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('GitHubRelease', () => {
.get('/repos/googleapis/foo')
.reply(200, repoInfo)
.get(
'/repos/googleapis/foo/pulls?state=closed&per_page=25&sort=merged_at&direction=desc'
'/repos/googleapis/foo/pulls?state=closed&per_page=50&sort=merged_at&direction=desc'
)
.reply(200, [
{
Expand Down Expand Up @@ -233,7 +233,7 @@ describe('GitHubRelease', () => {
.get('/repos/googleapis/foo')
.reply(200, repoInfo)
.get(
'/repos/googleapis/foo/pulls?state=closed&per_page=25&sort=merged_at&direction=desc'
'/repos/googleapis/foo/pulls?state=closed&per_page=50&sort=merged_at&direction=desc'
)
.reply(200, [
{
Expand Down Expand Up @@ -297,7 +297,7 @@ describe('GitHubRelease', () => {
.get('/repos/googleapis/foo')
.reply(200, repoInfo)
.get(
'/repos/googleapis/foo/pulls?state=closed&per_page=25&sort=merged_at&direction=desc'
'/repos/googleapis/foo/pulls?state=closed&per_page=50&sort=merged_at&direction=desc'
)
.reply(200, [
{
Expand Down

0 comments on commit c156950

Please sign in to comment.