diff --git a/.github/labeler.yml b/.github/labeler.yml index 905ecca6f768..276210e62ce1 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,29 +1,36 @@ api: - - any: ["frontend/src/ts/ape/**/*", "backend/src/api/**/*"] + - changed-files: + - any-glob-to-any-file: + - "frontend/src/ts/ape/**/*" + - "backend/src/api/**/*" assets: - - any: ["frontend/static/**/*"] - all: ["!frontend/static/**/*.html"] + - all: + - changed-files: + - any-glob-to-any-file: "frontend/static/**/*" + - all-globs-to-all-files: "!frontend/static/**/*.html" backend: - - any: ["backend/**/*"] + - changed-files: + - any-glob-to-any-file: "backend/**/*" docs: - - any: ["**/*.md"] + - changed-files: + - any-glob-to-any-file: "**/*.md" frontend: - - any: ["frontend/**/*"] + - changed-files: + - any-glob-to-any-file: "frontend/**/*" packages: - - any: ["packages/**/*"] + - changed-files: + - any-glob-to-any-file: "packages/**/*" -local dev: - - any: - [ - "**/turbo.json", - "**/tsconfig.json", - "**/knip.json", - "**/.prettierrc", - "**/.oxlintrc.json", - "**/.eslintrc.cjs", - ] +"local dev": + - changed-files: + - any-glob-to-any-file: + - "**/turbo.json" + - "**/tsconfig.json" + - "**/knip.json" + - "**/.prettierrc.json" + - "**/.oxlintrc.json" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 9fd7a06cda13..ca909275fe53 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -9,6 +9,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v6 with: repo-token: "${{ secrets.API_TOKEN }}" + sync-labels: true