Skip to content

Commit 5348fdb

Browse files
authored
Merge pull request #10 from Azaya89/auto-label-bot
2 parents f9661ea + c8a641a commit 5348fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/auto_triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
run: |
1717
# Get current labels and issue type - if any exist, the issue has been looked at
1818
label_count=$(gh issue view "$NUMBER" --json labels --jq '.labels | length')
19-
issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type')
19+
issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type // empty')
2020
echo "Number of existing labels: $label_count"
2121
echo "Issue type: $issue_type"
2222
23-
if [ "$label_count" -eq 0 ] && [ "$issue_type" = "null" ]; then
23+
if [ "$label_count" -eq 0 ] && [ -z "$issue_type" ]; then
2424
needs_triage=true
2525
else
2626
needs_triage=false

0 commit comments

Comments
 (0)