diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000000..0cafa08462 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,4 @@ +:type/feature: ['feature/*', 'feat/*'] +:type/enhancement: ['enhancement/*', 'enh/*', 'enhance/*', 'improve/*'] +:type/bug-fix: ['fix/*', 'fix*', 'bug/*', 'bug-fix/*', 'bugfix/*', 'bug-fixes/*', 'bugfixes/*'] +:type/dev: ['chore/*', 'test/*', 'docs/*', 'build/*', 'ci/*', 'misc/*', 'dev/*'] diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000000..778f584328 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,15 @@ +name: PR Labeler +on: + pull_request: + types: [opened] + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v3.1.0 + with: + # optional, .github/pr-labeler.yml is the default value + configuration-path: .github/pr-labeler.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}