diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..4109c75 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,6 @@ +bug: + - '(?i)\bbug\b' +feature: + - '(?i)\bfeature\b' +question: + - '(?i)\bquestion\b' diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml new file mode 100644 index 0000000..bf5be69 --- /dev/null +++ b/.github/workflows/issue-labeler.yml @@ -0,0 +1,19 @@ +name: Issue Labeler + +on: + issues: + types: [opened] + +permissions: + issues: write + contents: read + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3 + with: + configuration-path: .github/labeler.yml + include-title: 1 + repo-token: ${{ github.token }}