diff --git a/.github/workflows/update-issue-status.yml b/.github/workflows/update-issue-status.yml index 80f7a39..07ce2a2 100644 --- a/.github/workflows/update-issue-status.yml +++ b/.github/workflows/update-issue-status.yml @@ -87,32 +87,14 @@ jobs: - name: Update Issue Status to 'Done' run: | issue_id=${{ env.issue_id }} - project_id="1314" # Dynamic project ID, if necessary - status_field_id="${{ env.status_field_id }}" # Retrieved dynamically - done_option_id="${{ env.done_option_id }}" # Retrieved dynamically + project_id="1314" + status_field_id="${{ env.status_field_id }}" + done_option_id="${{ env.done_option_id }}" echo "Updating issue #$issue_number status to 'Done'" # GraphQL Mutation to update status - query="mutation { - updateProjectV2ItemFieldValue(input: { - projectId: \"$project_id\", - itemId: \"$issue_id\", - fieldId: \"$status_field_id\", - value: \"$done_option_id\" - }) { - projectV2Item { - id - content { - ... on Issue { - id - number - title - } - } - } - } - }" + query="{\"query\": \"mutation { updateProjectV2ItemFieldValue(input: { projectId: \\\"$project_id\\\", itemId: \\\"$issue_id\\\", fieldId: \\\"$status_field_id\\\", value: \\\"$done_option_id\\\" }) { projectV2Item { id content { ... on Issue { id number title } } } } }\"}" response=$(curl -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \ -X POST \