Skip to content

Commit

Permalink
Test GH Workflow - Mark Under Review - Attempt #3
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Mar 27, 2024
1 parent 5162d84 commit 0a4fa2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/record-in-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ jobs:
INTO_REVIEW_FIELD_ID: PVTF_lAHOBepif84AfH1xzgUnkt0
run: |
item_ids=$(echo '${{ env.LINKED_ISSUE_IDs }}' | jq '.[] | .projectItems.nodes[] | select(.project.id == "${{ env.PROJECT_ID }}") | .id')
DATE=$(date +"%Y-%m-%d")
echo "Date: $DATE"
while read -r ISSUE_ITEM_ID; do
echo "ISSUE_ITEM_ID=$ISSUE_ITEM_ID"
updatedAt="$( gh api graphql -f query='
mutation(
$itemId: ID!,
$projectId: ID!,
$date: Date!
$date: String!
) {
markUnderReview: updateProjectV2ItemFieldValue(
input: {
Expand Down Expand Up @@ -93,6 +95,6 @@ jobs:
updatedAt
}
}
}' -f itemId=$ISSUE_ITEM_ID -f projectId=$PROJECT_ID -f date=date --jq '.data.updateProjectV2ItemFieldValue.projectV2Item.updatedAt')"
}' -f itemId=$ISSUE_ITEM_ID -f projectId=$PROJECT_ID -f date=$DATE --jq '.data.updateProjectV2ItemFieldValue.projectV2Item.updatedAt')"
echo "Issues Updated @ $updatedAt"
done <<< "$item_ids"

0 comments on commit 0a4fa2a

Please sign in to comment.