fix: get all issues
This commit is contained in:
parent
4d8b899edd
commit
f1a66437cb
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user