Skip to content

Commit

Permalink
Update need-triage.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
svor authored Jun 3, 2024
1 parent e274079 commit 147020b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/need-triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install GitHub CLI
uses: actions/setup-gh@v3
uses: actions/checkout@v4

- name: Add Label "status/need-triage" if no label starting with "severity" exists
env:
Expand All @@ -23,10 +20,8 @@ jobs:
REPO=${{ github.repository }}
LABEL_TO_ADD="bug"
LABEL_PREFIX="severity"
# Get the issue labels
ISSUE_LABELS=$(gh issue view $ISSUE_NUMBER --json labels --jq '.labels[].name')
# Check if any label starts with 'severity'
if echo "$ISSUE_LABELS" | grep -q "^$LABEL_PREFIX"; then
echo "A label starting with '$LABEL_PREFIX' exists. No action needed."
Expand Down

0 comments on commit 147020b

Please sign in to comment.