diff --git a/dist/index.js b/dist/index.js index 760d01f..4ea167c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -376,7 +376,8 @@ const run = async () => { const issues = await octokit.paginate('GET /repos/{owner}/{repo}/issues', { owner, repo, - per_page: 100 + per_page: 100, + state: 'all', }, response => response.data.map(issue => (0, util_1.getIssue)(issue))); const { response, error } = await app.initialize(issues); if (error) diff --git a/src/index.ts b/src/index.ts index 0b0dacc..adf6301 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,8 @@ export const run = async () => { const issues = await octokit.paginate('GET /repos/{owner}/{repo}/issues', { owner, repo, - per_page: 100 + per_page: 100, + state: 'all', }, response => response.data.map(issue => getIssue(issue))); const {response, error} = await app.initialize(issues);