diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000..149f125 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,11 @@ +'plugin: babel': + - changed-files: + - any-glob-to-any-file: 'packages/babel/**' + +'plugin: emotion': + - changed-files: + - any-glob-to-any-file: 'packages/emotion/**' + +'plugin: jsx-remove-attributes': + - changed-files: + - any-glob-to-any-file: 'packages/jsx-remove-attributes/**' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..7cea90c --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,19 @@ +name: PR Labeler + +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-slim + steps: + - uses: actions/labeler@v5 + with: + configuration-path: .github/pr-labeler.yml + sync-labels: false + repo-token: ${{ github.token }}