Skip to content

Commit 66d279b

Browse files
Reet00J12934
authored andcommitted
Fixed formating issue to correctly assign prnode variable
Signed-off-by: Samreet <samreet.singh@iteratec.com>
1 parent 976c49d commit 66d279b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/move-dependabot-pr-to-review.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
secureCodeBoxV4ProjectID="PVT_kwDOAg-Nic05GQ"
2222
2323
# Add item to project
24-
echo prNodeID=$(gh api graphql -f query='
24+
echo prNodeID=$(gh api graphql -f query="
2525
mutation {
26-
addProjectV2ItemById(input: {projectId: "$secureCodeBoxV4ProjectID" contentId: "$PR_ID"}) {
26+
addProjectV2ItemById(input: {projectId: \"$secureCodeBoxV4ProjectID\", contentId: \"$PR_ID\"}) {
2727
item {
2828
id
2929
}
3030
}
31-
}' | jq '.data.addProjectV2ItemById.item.id') >> $GITHUB_ENV
31+
}" | jq -r '.data.addProjectV2ItemById.item.id') >> $GITHUB_ENV
3232
env:
3333
GH_TOKEN: ${{ secrets.SCB_BOT_USER_TOKEN }}
3434
PR_ID: ${{ github.event.pull_request.node_id }}
@@ -46,7 +46,7 @@ jobs:
4646
4747
prNodeID=${{env.prNodeID}}
4848
# Move PR to "To Review" status
49-
gh project item-edit --id ${{ env.prNodeID }} --field-id $StatusFieldID --project-id "$seureCodeBoxV4ProjectID" --single-select-option-id "$ToReviewID"
49+
gh project item-edit --id ${{ env.prNodeID }} --field-id $StatusFieldID --project-id $secureCodeBoxV4ProjectID --single-select-option-id $ToReviewID
5050
5151
5252
# This command gets the IDs for the status options

0 commit comments

Comments
 (0)