diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..f37373f --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,30 @@ +slash-commands: + - changed-files: + - any-glob-to-any-file: + - 'commands/**' + - '.claude/**' + +core: + - changed-files: + - any-glob-to-any-file: + - 'lib/**' + +templates: + - changed-files: + - any-glob-to-any-file: + - 'templates/**' + +documentation: + - changed-files: + - any-glob-to-any-file: + - 'README.md' + - 'docs/**' + - 'CONTRIBUTING.md' + - 'CODEOWNERS' + - 'CHANGELOG.md' + - '*.md' + +github-config: + - changed-files: + - any-glob-to-any-file: + - '.github/**' diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..07171f6 --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,16 @@ +name: Auto Label PRs + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"