diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..fa7fdc2 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,29 @@ +"type: mod change": + - changed-files: + - any-glob-to-any-file: + - 'mods/*.pw.toml' + - 'mods/*.jar' + +"type: questbook": + - changed-files: + - any-glob-to-any-file: 'config/betterquesting/**' + +"type: docs": + - changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '*.md' + - 'LICENSE' + - 'NOTICE.md' + - 'CLAUDE.md' + +"type: translation": + - changed-files: + - any-glob-to-any-file: 'resources/**/lang/**' + +"type: chore": + - changed-files: + - any-glob-to-any-file: + - '.github/**' + - 'flake.nix' + - 'flake.lock' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..28fb782 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,24 @@ +name: PR Labeler + +on: + pull_request_target: + branches: + - 'main' + types: + - opened + - synchronize + - reopened + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + + steps: + - uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true