From e783ffb30bfc679466002cb9a6cee91ed5bbfbe2 Mon Sep 17 00:00:00 2001 From: Magic_Sweepy Date: Sat, 20 Jun 2026 15:15:25 +0800 Subject: [PATCH 1/2] add labeler file for some changing scope --- .github/labeler.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/labeler.yml 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 From f2d0a79b6314f928e1fb365510265c93355181cb Mon Sep 17 00:00:00 2001 From: Magic_Sweepy Date: Sat, 20 Jun 2026 15:15:40 +0800 Subject: [PATCH 2/2] add labeler workflow --- .github/workflows/labeler.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/labeler.yml 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