diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..330791c3 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +'area: background': + - any: + - changed-files: + - any-glob-to-any-file: 'src/background/**/*' + +'area: ci': + - any: + - changed-files: + - any-glob-to-any-file: '.github/**/*.yml' + +'area: content': + - any: + - changed-files: + - any-glob-to-any-file: 'src/content/**/*' + +'area: popup': + - any: + - changed-files: + - any-glob-to-any-file: 'src/popup/**/*' + +'area: documentation': + - any: + - changed-files: + - all-globs-to-any-file: + - '**/*.md' + - '!.github/actions/**/*.md' + +'area: tests': + - any: + - changed-files: + - any-glob-to-any-file: '**/*.test.ts' diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..82aa1988 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,21 @@ +name: PR Labeler + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + +jobs: + label: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-22.04 + steps: + - name: Add labels + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true