From 140b0f7179196c092e681e54731b01cb67bd909a Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Thu, 27 Aug 2026 01:54:55 +0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20overhaul=20PR=20auto-labeler=20?= =?UTF-8?q?=E2=80=94=20fork=20compat=20+=20real=20codebase=20coverage=20(#?= =?UTF-8?q?988)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: M57 --- .github/labeler.yml | 51 +++++++++++++++++++++++++++++++- .github/workflows/pr-labeler.yml | 13 ++++---- 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 41baa172..d15a39ab 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,7 +1,8 @@ # Path-based PR auto-labels (used by .github/workflows/pr-labeler.yml). # Additive only — labels added by hand or Dependabot are never removed. -# All labels here already exist in the repo. +# All labels referenced here must already exist in the repo. +# ── docs ────────────────────────────────────────────────────────── documentation: - changed-files: - any-glob-to-any-file: @@ -10,14 +11,62 @@ documentation: - "CONTRIBUTING.md" - "AGENTS.md" +# ── CI / workflows ─────────────────────────────────────────────── ci: - changed-files: - any-glob-to-any-file: - ".github/**" +# ── tests ───────────────────────────────────────────────────────── testing: - changed-files: - any-glob-to-any-file: - "app/src/test/**" - "app/src/androidTest/**" - "**/*Test.kt" + +# ── UI / UX ─────────────────────────────────────────────────────── +ux: + - changed-files: + - any-glob-to-any-file: + - "app/src/main/**/ui/**" + - "app/src/main/**/theme/**" + - "app/src/main/res/**" + +# ── networking (WS, REST, remote) ───────────────────────────────── +networking: + - changed-files: + - any-glob-to-any-file: + - "app/src/main/**/data/ws/**" + - "app/src/main/**/data/remote/**" + +# ── data layer (Room, models, local) ────────────────────────────── +data-layer: + - changed-files: + - any-glob-to-any-file: + - "app/src/main/**/data/local/**" + - "app/src/main/**/data/model/**" + - "app/src/main/**/data/session/**" + - "app/src/main/**/data/config/**" + - "app/schemas/**" + +# ── security (auth, tokens, encryption) ─────────────────────────── +security: + - changed-files: + - any-glob-to-any-file: + - "app/src/main/**/authlogin/**" + - "app/src/main/**/data/remote/Auth*" + - "app/src/main/**/data/remote/*Token*" + +# ── build system (Gradle, Nix, wrapper) ────────────────────────── +build: + - changed-files: + - any-glob-to-any-file: + - "*.gradle.kts" + - "gradle/**" + - "gradle.properties" + - "gradlew" + - "gradlew.bat" + - "flake.nix" + - "flake.lock" + - ".editorconfig" diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index dfd98a0a..2590b528 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,7 +1,7 @@ name: PR Auto-Labeler on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened] branches: [main] @@ -10,7 +10,7 @@ permissions: pull-requests: write concurrency: - group: labeler-${{ github.ref }} + group: labeler-${{ github.head_ref }} cancel-in-progress: true jobs: @@ -20,6 +20,9 @@ jobs: steps: - name: Label by changed files uses: actions/labeler@v6 - # Reads .github/labeler.yml. Additive only (sync-labels defaults to - # false), so manually-added labels and Dependabot's `dependencies` - # label are never touched. + with: + dot: true + sync-labels: false + # Reads .github/labeler.yml. Additive only (sync-labels: false), + # so manually-added labels and Dependabot's `dependencies` label + # are never touched.