From e8089de903ac9570b47611a1af232fd741630332 Mon Sep 17 00:00:00 2001 From: Shojiro Yanagisawa Date: Sun, 14 Jan 2024 19:48:13 +0900 Subject: [PATCH] fix fetchProjectV2FieldByName args --- dist/index.js | 2 +- src/ex-octokit/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4b80aeb..77c3d9d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28934,7 +28934,7 @@ class ExOctokit { } // TODO: support 'ProjectV2IterationField' Type async fetchProjectV2FieldByName(projectV2Id, fieldName) { - const projectV2FieldResponse = await this.octokit.graphql(`query fetchProjectV2FieldByName($projectOwnerName: String!, $fieldName: Int!) { + const projectV2FieldResponse = await this.octokit.graphql(`query fetchProjectV2FieldByName($projectV2Id: ID!, $fieldName: Int!) { node(id: $projectV2Id) { ... on ProjectV2 { field(name: $fieldName) { diff --git a/src/ex-octokit/index.ts b/src/ex-octokit/index.ts index 88d0d44..05c3eae 100644 --- a/src/ex-octokit/index.ts +++ b/src/ex-octokit/index.ts @@ -68,7 +68,7 @@ export class ExOctokit { ): Promise { const projectV2FieldResponse = await this.octokit.graphql( - `query fetchProjectV2FieldByName($projectOwnerName: String!, $fieldName: Int!) { + `query fetchProjectV2FieldByName($projectV2Id: ID!, $fieldName: Int!) { node(id: $projectV2Id) { ... on ProjectV2 { field(name: $fieldName) {