fix(ci): overhaul PR auto-labeler — fork compat + real codebase coverage (#988)
Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
2fed891d78
commit
140b0f7179
2 files changed
+58
-6
No files matched your search
+50
-1
@@ -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"
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user