Skip to content

Commit

Permalink
Test GH Workflow - Mark Under Review - Attempt node-red#26
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Mar 27, 2024
1 parent ee734b4 commit 9794308
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/record-in-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
GH_TOKEN: ${{ secrets.PROJECT_ACCESS_TOKEN }}
PR_ID: ${{ github.event.pull_request.node_id }}
run: |
echo "GH_TOKEN:"
echo "$GH_TOKEN"
echo "PR_ID:"
echo "$PR_ID"
linked_issues="$( gh api graphql -f query='
Expand Down Expand Up @@ -56,10 +54,7 @@ jobs:
STATUS_FIELD_ID: PVTSSF_lAHOBepif84AfH1xzgUjmnw
UNDER_REVIEW_OPTION_ID: 5fce39d2
run: |
item_ids=$(echo '${{ env.LINKED_ISSUE_IDs }}' | jq '.[] | .projectItems.nodes[] | select(.project.id == "${{ env.PROJECT_ID }}") | .id')
echo item_ids:
echo $item_ids
echo while loop:
item_ids=$(echo '${{ env.LINKED_ISSUE_IDs }}' | jq '.[] | .projectItems.nodes[] | select(.project.id == "${{ env.PROJECT_ID }}") | .id')
while read -r ISSUE_ITEM_ID; do
echo "ISSUE_ITEM_ID=$ISSUE_ITEM_ID"
updatedAt="$( gh api graphql -f query='
Expand All @@ -80,5 +75,5 @@ jobs:
}
}
}' -f itemId=$ISSUE_ITEM_ID -f projectId=$PROJECT_ID --jq '.data.updateProjectV2ItemFieldValue.projectV2Item.updatedAt')"
echo "updatedAt=$updatedAt"
echo "Issues Updated @ $updatedAt"
done <<< "$item_ids"

0 comments on commit 9794308

Please sign in to comment.