From 46623541fe520f19ca7d58b231278b34daf9a553 Mon Sep 17 00:00:00 2001 From: souvik Date: Wed, 23 Mar 2022 15:40:40 +0530 Subject: [PATCH] should fix issue with not syncing close issue --- dist/index.js | 3 ++- src/index.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);