From c8a641a59e73b9a8dfb6a122e397967b445d6de7 Mon Sep 17 00:00:00 2001 From: Isaiah Akorita Date: Wed, 24 Dec 2025 11:06:18 +0100 Subject: [PATCH] return empty instead of null --- .github/workflows/auto_triage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto_triage.yml b/.github/workflows/auto_triage.yml index 2fbc46218..6d14aa138 100644 --- a/.github/workflows/auto_triage.yml +++ b/.github/workflows/auto_triage.yml @@ -16,11 +16,11 @@ jobs: run: | # Get current labels and issue type - if any exist, the issue has been looked at label_count=$(gh issue view "$NUMBER" --json labels --jq '.labels | length') - issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type') + issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type // empty') echo "Number of existing labels: $label_count" echo "Issue type: $issue_type" - if [ "$label_count" -eq 0 ] && [ "$issue_type" = "null" ]; then + if [ "$label_count" -eq 0 ] && [ -z "$issue_type" ]; then needs_triage=true else needs_triage=false