From f1a66437cbfd681c6f00a686072524dfe563f29c Mon Sep 17 00:00:00 2001 From: monoid Date: Mon, 9 May 2022 21:51:08 +0900 Subject: [PATCH] fix: get all issues --- tools/getIssue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/getIssue.ts b/tools/getIssue.ts index 999d32e..2cd779b 100644 --- a/tools/getIssue.ts +++ b/tools/getIssue.ts @@ -16,7 +16,7 @@ import "https://deno.land/std@0.136.0/dotenv/load.ts"; */ export async function getIssues(repo: string, token: string): Promise { //check https://docs.github.com/en/rest/reference/issues#list-repository-issues - const res = await fetch(`https://api.github.com/repos/${repo}/issues?per_page=100&labels=feature`, { + const res = await fetch(`https://api.github.com/repos/${repo}/issues?per_page=100&labels=feature&state=all`, { headers: { Accept: 'application/vnd.github.v3+json', Authorization: `Token ${token}`