From e6ca84534d3d755e8a641f83b0c7e01e94d27d83 Mon Sep 17 00:00:00 2001 From: Ben Jarmak Date: Wed, 27 Sep 2023 11:30:14 -0500 Subject: [PATCH 1/2] Change queried result from `id` to `optionId` --- .../workflows/project_automation_sync_pr_issues.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/project_automation_sync_pr_issues.yml b/.github/workflows/project_automation_sync_pr_issues.yml index 8d311ab09ca..68311aedc47 100644 --- a/.github/workflows/project_automation_sync_pr_issues.yml +++ b/.github/workflows/project_automation_sync_pr_issues.yml @@ -99,13 +99,13 @@ jobs: id fieldValueByName(name: "Status") { ... on ProjectV2ItemFieldSingleSelectValue { - id + optionId } } } } }' > status_field_data.json - status_option_id=$(jq -r '.data.node.fieldValueByName.id' status_field_data.json) + status_option_id=$(jq -r '.data.node.fieldValueByName.optionId' status_field_data.json) echo "STATUS_OPTION_ID=$status_option_id" >> $GITHUB_ENV # Query the PR's start sprint from the project @@ -116,13 +116,13 @@ jobs: id fieldValueByName(name: "Start Sprint") { ... on ProjectV2ItemFieldIterationValue { - id + optionId } } } } }' > start_sprint_data.json - start_sprint_option_id=$(jq -r '.data.node.fieldValueByName.id' start_sprint_data.json) + start_sprint_option_id=$(jq -r '.data.node.fieldValueByName.optionId' start_sprint_data.json) echo "START_SPRINT_OPTION_ID=$start_sprint_option_id" >> $GITHUB_ENV # Query the PR's working sprint from the project @@ -133,13 +133,13 @@ jobs: id fieldValueByName(name: "Working Sprint") { ... on ProjectV2ItemFieldIterationValue { - id + optionId } } } } }' > working_sprint_data.json - working_sprint_option_id=$(jq -r '.data.node.fieldValueByName.id' working_sprint_data.json) + working_sprint_option_id=$(jq -r '.data.node.fieldValueByName.optionId' working_sprint_data.json) echo "WORKING_SPRINT_OPTION_ID=$working_sprint_option_id" >> $GITHUB_ENV continue-on-error: true From c389027f38bc6ffe526429383aafb0d9adfa40c1 Mon Sep 17 00:00:00 2001 From: Ben Jarmak Date: Wed, 27 Sep 2023 11:32:04 -0500 Subject: [PATCH 2/2] [skip ci] remove the wait step, not needed here --- .github/workflows/project_automation_sync_pr_issues.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/project_automation_sync_pr_issues.yml b/.github/workflows/project_automation_sync_pr_issues.yml index 68311aedc47..5b5650b2066 100644 --- a/.github/workflows/project_automation_sync_pr_issues.yml +++ b/.github/workflows/project_automation_sync_pr_issues.yml @@ -45,10 +45,6 @@ jobs: app_id: ${{ secrets.CCCL_AUTH_APP_ID }} private_key: ${{ secrets.CCCL_AUTH_APP_PEM }} - - name: Wait 1 Second - id: sleep - run: sleep 1 - - name: Get PR Project ID id: get_pr_id env: