diff --git a/.github/workflows/add_to_inbox.yml b/.github/workflows/add_to_inbox.yml index ee1d329adde..a36c680bb4c 100644 --- a/.github/workflows/add_to_inbox.yml +++ b/.github/workflows/add_to_inbox.yml @@ -23,14 +23,9 @@ jobs: installation-id: ${{ vars.PRIMER_APP_INSTALLATION_ID_SHARED }} - name: Add react label to issue run: | - gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query=' - mutation($reactLabelId: ID!, $issue: ID!) { - addLabelsToLabelable(input: { labelIds: [$reactLabelId], labelableId: $issue }) { - clientMutationId - } - }' -f reactLabelId=$REACT_LABEL_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id' + gh issue edit $ISSUE_ID --add-label react env: - GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }} + GH_TOKEN: ${{ steps.get-access-token.outputs.access-token }} - name: Add issue to project run: | gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query=' @@ -40,6 +35,6 @@ jobs: id } } - }' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id' + }' -f project=$PROJECT_ID -f issue=$ISSUE_ID env: - GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }} + GH_TOKEN: ${{ steps.get-access-token.outputs.access-token }}