From 8670c2e74bc317cf09a2f8133165a5d40074ef2e Mon Sep 17 00:00:00 2001 From: neuronull Date: Mon, 31 Jul 2023 17:42:13 -0600 Subject: [PATCH 1/2] fix(ci): fix gardener move blocked to triage on comment --- .github/workflows/gardener_issue_comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gardener_issue_comment.yml b/.github/workflows/gardener_issue_comment.yml index e066f40f49c87..0fab6649e6819 100644 --- a/.github/workflows/gardener_issue_comment.yml +++ b/.github/workflows/gardener_issue_comment.yml @@ -89,7 +89,7 @@ jobs: echo "Found issue on Gardener board. Current issue status is: '${current_status}'" fi - if [ "$current_status" = "Blocked / Waiting" ] ; then + if [ "$current_status" = "\"Blocked / Waiting\"" ] ; then echo "Moving issue from 'Blocked / Waiting' to 'Triage'" gh api graphql -f query=' mutation($project_id: ID!, $item_id: ID!, $field_id: ID!, $option_id: String) { From 5cba8bf503ea18972ae1342dbfcbf2578838583b Mon Sep 17 00:00:00 2001 From: neuronull Date: Tue, 1 Aug 2023 09:43:44 -0600 Subject: [PATCH 2/2] feedback js --- .github/workflows/gardener_issue_comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gardener_issue_comment.yml b/.github/workflows/gardener_issue_comment.yml index 0fab6649e6819..f25dc9da5e02a 100644 --- a/.github/workflows/gardener_issue_comment.yml +++ b/.github/workflows/gardener_issue_comment.yml @@ -79,7 +79,7 @@ jobs: # Extract the item in the Gardener project 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') + current_status=$(echo $project | jq -c -r '.fieldValueByName.name') item_id=$(echo $project | jq -c '.id') if [ -z "$current_status" ] ; then @@ -89,7 +89,7 @@ jobs: echo "Found issue on Gardener board. Current issue status is: '${current_status}'" fi - if [ "$current_status" = "\"Blocked / Waiting\"" ] ; then + if [ "$current_status" = "Blocked / Waiting" ] ; then echo "Moving issue from 'Blocked / Waiting' to 'Triage'" gh api graphql -f query=' mutation($project_id: ID!, $item_id: ID!, $field_id: ID!, $option_id: String) {