diff --git a/dist/index.js b/dist/index.js index 41bf522..03e2208 100644 --- a/dist/index.js +++ b/dist/index.js @@ -46921,11 +46921,11 @@ var inputs = { } }, async getPullRequests(octokit, context3) { - const pullRequests = await octokit.paginate( + const openPullRequests = await octokit.paginate( "GET /repos/{owner}/{repo}/pulls", { ...context3.repo, - state: "open", + state: "all", per_page: 100 }, (response) => response.data.map( @@ -46939,10 +46939,10 @@ var inputs = { ); core2.startGroup("Inputs: Pull requests"); core2.info( - JSON.stringify(pullRequests.map(({ body: _, ...pullRequest }) => pullRequest)) + JSON.stringify(openPullRequests.map(({ body: _, ...pullRequest }) => pullRequest)) ); core2.endGroup(); - return pullRequests; + return openPullRequests; } }; diff --git a/src/inputs.ts b/src/inputs.ts index 95bbea5..282dbd2 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -127,11 +127,11 @@ export const inputs = { }, async getPullRequests(octokit: Octokit, context: typeof github.context) { - const pullRequests = await octokit.paginate( + const openPullRequests = await octokit.paginate( 'GET /repos/{owner}/{repo}/pulls', { ...context.repo, - state: 'open', + state: 'all', per_page: 100, }, (response) => @@ -147,10 +147,10 @@ export const inputs = { core.startGroup('Inputs: Pull requests') core.info( - JSON.stringify(pullRequests.map(({ body: _, ...pullRequest }) => pullRequest)) + JSON.stringify(openPullRequests.map(({ body: _, ...pullRequest }) => pullRequest)) ) core.endGroup() - return pullRequests + return openPullRequests }, }