File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 20
20
GH_TOKEN : ${{ secrets.GH_PROJECT_PAT }}
21
21
run : |
22
22
issue_id=${{ github.event.issue.node_id }}
23
+ echo "issue_id: $issue_id"
23
24
24
25
# IDs fetched from https://docs.github.com/en/graphql/overview/explorer
25
26
project_id="PVT_kwDOAQFeYs4AAsTr" # Gardener
40
41
}
41
42
}
42
43
... on ProjectV2Item {
44
+ id
43
45
project {
44
46
... on ProjectV2 {
45
47
id
55
57
)"
56
58
57
59
# Extract the item in the Gardener project
58
- current_status=$(echo $project_items | jq -c -r --arg project_id $project_id '.data.node.projectItems.nodes[] | select(.project.id == $project_id) | .fieldValueByName.name')
60
+ project=$(echo $project_items | jq -c -r --arg project_id $project_id '.data.node.projectItems.nodes[] | select(.project.id == $project_id)')
61
+ current_status=$(echo $project | jq -c '.fieldValueByName.name')
62
+ item_id=$(echo $project | jq -c '.id')
59
63
60
64
if [ -z "$current_status" ] ; then
61
65
echo "Issue not found in Gardener board"
You can’t perform that action at this time.
0 commit comments