diff --git a/actions/create-draft/src/on-release.ts b/actions/create-draft/src/on-release.ts index a6c5d1e..d214c59 100644 --- a/actions/create-draft/src/on-release.ts +++ b/actions/create-draft/src/on-release.ts @@ -13,7 +13,7 @@ export const closeIssues = async (options: { issueIds: string[]; closedLabelIds: authorization: `token ${options.GITHUB_TOKEN}` } }); - const QUERY = `mutation CloseMutation($labelIds: [String!]) { + const QUERY = `mutation CloseMutation($labelIds: [ID!]) { ${options.issueIds.map((issueId, index) => { return `req${index}: updateIssue(input: { id: "${issueId}", labelIds: $labelIds, state: CLOSED }){ issue {