diff --git a/actions/create-draft/src/create-draft.ts b/actions/create-draft/src/create-draft.ts index 341dc17..cbcb26c 100644 --- a/actions/create-draft/src/create-draft.ts +++ b/actions/create-draft/src/create-draft.ts @@ -12,6 +12,12 @@ export type Issue = { author: { login: string; } + labels: { + nodes: { + name: string; + color: string; + }[] + } } export const fetchIssues = async ( options: { owner: string; repo: string; labels: string[]; GITHUB_TOKEN: string; }, @@ -33,6 +39,12 @@ export const fetchIssues = async ( author { login } + labels(first:10){ + nodes { + name + color + } + } } } }