We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9661ea + c8a641a commit 5348fdbCopy full SHA for 5348fdb
.github/workflows/auto_triage.yml
@@ -16,11 +16,11 @@ jobs:
16
run: |
17
# Get current labels and issue type - if any exist, the issue has been looked at
18
label_count=$(gh issue view "$NUMBER" --json labels --jq '.labels | length')
19
- issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type')
+ issue_type=$(gh api repos/$GH_REPO/issues/$NUMBER --jq '.type // empty')
20
echo "Number of existing labels: $label_count"
21
echo "Issue type: $issue_type"
22
23
- if [ "$label_count" -eq 0 ] && [ "$issue_type" = "null" ]; then
+ if [ "$label_count" -eq 0 ] && [ -z "$issue_type" ]; then
24
needs_triage=true
25
else
26
needs_triage=false
0 commit comments