diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..630e5db00 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,56 @@ +# Configuration for labeler - https://github.com/actions/labeler +"Type: Breaking change": + - head-branch: + - '^breaking/' + - '^breaking-' + +"Type: Feature": + - head-branch: + - '^feat/' + - '^feat-' + - '^feature/' + - '^feature-' + +"Type: Bug": + - head-branch: + - '^fix/' + - '^fix-' + - '^bugfix/' + - '^bugfix-' + - '^bug/' + - '^bug-' + +"Deprecation": + - head-branch: + - '^deprecate/' + - '^deprecate-' + - '^deprecation/' + - '^deprecation-' + +"Type: Maintenance": + - head-branch: + - '^chore/' + - '^chore-' + - '^maintenance/' + - '^maintenance-' + - '^maint/' + - '^maint-' + - '^deps/' + - '^deps-' + - '^dependencies/' + - '^dependencies-' + - changed-files: + - any-glob-to-any-file: + - .github/workflows/** + - .github/labeler.yml + - .github/dependabot.yml + - .github/release.yml + +"Type: Documentation": + - head-branch: + - '^docs/' + - '^docs-' + - '^doc/' + - '^doc-' + - changed-files: + - any-glob-to-any-file: 'website/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..a0af6702c --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: Pull Request Labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write # Use this if all labels already exist in the repository (i.e., pre-defined in .github/labeler.yml). + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - name: Run Labeler + uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 + with: + sync-labels: true # Whether or not to remove labels when matching files are reverted or no longer changed by the PR