From f70d9c61ce6e2ab317364b0cf8579ce34c8bb4c8 Mon Sep 17 00:00:00 2001 From: Hubert Deng Date: Mon, 27 Feb 2023 12:20:37 -0800 Subject: [PATCH] (chore): Remove issue status helper automation (#45127) --- .github/workflows/issue-status-helper.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/issue-status-helper.yml diff --git a/.github/workflows/issue-status-helper.yml b/.github/workflows/issue-status-helper.yml deleted file mode 100644 index 6fe56b3a149581..00000000000000 --- a/.github/workflows/issue-status-helper.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Issue Status Helper -on: - issues: - types: [labeled] -jobs: - ensure_one_status: - runs-on: ubuntu-latest - if: "startsWith(github.event.label.name, 'Status: ')" - steps: - - name: "Ensure a single 'Status: *' label" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - run: | - labels_to_remove=$(gh api --paginate "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")') - gh issue edit ${{ github.event.issue.number }} --remove-label "$labels_to_remove" --add-label "${{ github.event.label.name }}"