From 239e2f9fcd3a3d469a2d6edfc33b57bf5c39c6a2 Mon Sep 17 00:00:00 2001 From: Lennart Ochel Date: Thu, 3 Nov 2022 18:30:30 +0100 Subject: [PATCH] ci: migrate to ProjectV2 GraphQL API (#11311) --- .github/workflows/project.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 999cc08e2..1aa69c279 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -27,24 +27,25 @@ jobs: gh api graphql -f query=' query($org: String!, $number: Int!) { organization(login: $org){ - projectNext(number: $number) { + projectV2(number: $number) { id fields(first:20) { nodes { - id - name + ... on ProjectV2Field { + id + name + } } } } } - } - ' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json + }' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json # Parse project data cat >> $GITHUB_ENV <> $GITHUB_ENV @@ -108,23 +109,23 @@ jobs: $theme_field: ID! $theme_value: String! ) { - set_plugin: updateProjectNextItemField(input: { + set_plugin: updateProjectV2ItemFieldValue(input: { projectId: $project itemId: $item fieldId: $plugin_field value: $plugin_value }) { - projectNextItem { + projectV2Item { id } } - set_theme: updateProjectNextItemField(input: { + set_theme: updateProjectV2ItemFieldValue(input: { projectId: $project itemId: $item fieldId: $theme_field value: $theme_value }) { - projectNextItem { + projectV2Item { id } } @@ -133,4 +134,3 @@ jobs: -f plugin_field=$PLUGIN_FIELD_ID -f plugin_value=$PLUGIN \ -f theme_field=$THEME_FIELD_ID -f theme_value=$THEME \ --silent -