Skip to content

Commit

Permalink
chore(ci): fix gardener issues comment workflow pt 2 (#17886)
Browse files Browse the repository at this point in the history
We were no longer getting the `item_id`
  • Loading branch information
dsmith3197 authored Jul 6, 2023
1 parent aeccd26 commit 57ea2b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gardener_issue_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
GH_TOKEN: ${{ secrets.GH_PROJECT_PAT }}
run: |
issue_id=${{ github.event.issue.node_id }}
echo "issue_id: $issue_id"
# IDs fetched from https://docs.github.com/en/graphql/overview/explorer
project_id="PVT_kwDOAQFeYs4AAsTr" # Gardener
Expand All @@ -40,6 +41,7 @@ jobs:
}
}
... on ProjectV2Item {
id
project {
... on ProjectV2 {
id
Expand All @@ -55,7 +57,9 @@ jobs:
)"
# Extract the item in the Gardener project
current_status=$(echo $project_items | jq -c -r --arg project_id $project_id '.data.node.projectItems.nodes[] | select(.project.id == $project_id) | .fieldValueByName.name')
project=$(echo $project_items | jq -c -r --arg project_id $project_id '.data.node.projectItems.nodes[] | select(.project.id == $project_id)')
current_status=$(echo $project | jq -c '.fieldValueByName.name')
item_id=$(echo $project | jq -c '.id')
if [ -z "$current_status" ] ; then
echo "Issue not found in Gardener board"
Expand Down

0 comments on commit 57ea2b3

Please sign in to comment.