From c50a7afddb1334ffe67c55f5681d6f5f61260334 Mon Sep 17 00:00:00 2001 From: Ana Wishnoff Date: Fri, 2 Aug 2024 11:07:50 -0400 Subject: [PATCH] Auto-adding needs-triage label to all new issues --- .github/workflows/add-labels | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/add-labels diff --git a/.github/workflows/add-labels b/.github/workflows/add-labels new file mode 100644 index 0000000..2486078 --- /dev/null +++ b/.github/workflows/add-labels @@ -0,0 +1,18 @@ +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: status:needs-triage