fix: get all issues

This commit is contained in:
monoid 2022-05-09 21:51:08 +09:00
parent 4d8b899edd
commit f1a66437cb

View File

@ -16,7 +16,7 @@ import "https://deno.land/std@0.136.0/dotenv/load.ts";
*/
export async function getIssues(repo: string, token: string): Promise<Issue[]> {
//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}`