diff --git a/.github/workflows/record-in-review.yml b/.github/workflows/record-in-review.yml index 54093f6962..533a3b80e6 100644 --- a/.github/workflows/record-in-review.yml +++ b/.github/workflows/record-in-review.yml @@ -45,13 +45,19 @@ jobs: totalCount nodes { id + projectItems (first:5) { + nodes { + id + project { + id + } + } } } } } }' -f pr=$PR_ID --jq '.data.node.closingIssuesReferences.nodes')" - echo "jq length linked_issues" echo "ISSUE IDs:" echo "$linked_issues" echo "LINKED_ISSUE_IDs=$linked_issues" >> $GITHUB_ENV @@ -63,6 +69,7 @@ jobs: STATUS_FIELD_ID: PVTSSF_lAHOBepif84AfH1xzgUjmnw UNDER_REVIEW_OPTION_ID: 5fce39d2 run: | + items_ids = echo '${{ env.LINKED_ISSUE_IDs }}' | jq map(select(.projectItems.nodes[].project.id == $PROJECT_ID)) | jq -r '.[] | .id' echo '${{ env.LINKED_ISSUE_IDs }}' | jq -r '.[] | .id' | while read ISSUE_ID; do echo "ISSUE_ID=$ISSUE_ID" updatedAt="$( gh api graphql -f query='