diff --git a/.github/pr-labeler-config.yml b/.github/pr-labeler-config.yml new file mode 100644 index 00000000..46bafe30 --- /dev/null +++ b/.github/pr-labeler-config.yml @@ -0,0 +1,13 @@ +version: 1 +appendOnly: true +labels: + - label: "bugfix" + title: "(?i)fix|bug" + - label: "documentation" + title: "(?i)docs|documentation" + - label: "enhancement" + title: "(?i)feat|feature|enhance|improve" + - label: "plugin" + title: "(?i)plugin" + - label: "test" + title: "(?i)test" diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..658b2d29 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,20 @@ +name: Auto Label PR + +on: + pull_request: + branches: [ "main" ] + types: [opened, edited, reopened, synchronize] + +jobs: + label-plugin-pr: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Auto Apply Labels + uses: srvaroa/labeler@master + with: + config_path: .github/pr-labeler-config.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}