From fd42ee23434592273d78f3b35ac42df7510ba39c Mon Sep 17 00:00:00 2001 From: Dr-Blank <64108942+Dr-Blank@users.noreply.github.com> Date: Tue, 17 Sep 2024 00:06:53 -0400 Subject: [PATCH] feat: add issue labeler workflow with configuration --- .github/labeler.yml | 2 ++ .github/workflows/issue-labeler.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/issue-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..98cd987 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +needs triage: + - "/.*/" diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml new file mode 100644 index 0000000..3744d07 --- /dev/null +++ b/.github/workflows/issue-labeler.yml @@ -0,0 +1,20 @@ +name: New issue labeler +on: + # Runs on newly opened issues + issues: + types: [opened] + +# Sets permissions of the GITHUB_TOKEN +permissions: + issues: write + contents: read + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.4 + with: + configuration-path: .github/labeler.yml + enable-versioned-regex: 0 + repo-token: "${{secrets.GITHUB_TOKEN}}"