From 2f016d9d4d19885e65c20385317414b102d05c1e Mon Sep 17 00:00:00 2001 From: Valerii Svydenko Date: Mon, 3 Jun 2024 13:08:37 +0300 Subject: [PATCH] Delete .github/workflows/need-triage.yaml --- .github/workflows/need-triage.yaml | 32 ------------------------------ 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/need-triage.yaml diff --git a/.github/workflows/need-triage.yaml b/.github/workflows/need-triage.yaml deleted file mode 100644 index 1ba8440dc..000000000 --- a/.github/workflows/need-triage.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: Label New Issues - -on: - issues: - types: [opened] - -jobs: - label-issue: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Add Label "status/need-triage" if no label starting with "severity" exists - env: - GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} - run: | - ISSUE_NUMBER=${{ github.event.issue.number }} - 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." - else - echo "No label starting with '$LABEL_PREFIX' found. Adding '$LABEL_TO_ADD'." - # Add the label to the issue - gh issue edit $ISSUE_NUMBER --add-label "$LABEL_TO_ADD" - fi