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).
|
# Path-based PR auto-labels (used by .github/workflows/pr-labeler.yml).
|
||||||
# Additive only — labels added by hand or Dependabot are never removed.
|
# 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:
|
documentation:
|
||||||
- changed-files:
|
- changed-files:
|
||||||
- any-glob-to-any-file:
|
- any-glob-to-any-file:
|
||||||
@@ -10,14 +11,62 @@ documentation:
|
|||||||
- "CONTRIBUTING.md"
|
- "CONTRIBUTING.md"
|
||||||
- "AGENTS.md"
|
- "AGENTS.md"
|
||||||
|
|
||||||
|
# ── CI / workflows ───────────────────────────────────────────────
|
||||||
ci:
|
ci:
|
||||||
- changed-files:
|
- changed-files:
|
||||||
- any-glob-to-any-file:
|
- any-glob-to-any-file:
|
||||||
- ".github/**"
|
- ".github/**"
|
||||||
|
|
||||||
|
# ── tests ─────────────────────────────────────────────────────────
|
||||||
testing:
|
testing:
|
||||||
- changed-files:
|
- changed-files:
|
||||||
- any-glob-to-any-file:
|
- any-glob-to-any-file:
|
||||||
- "app/src/test/**"
|
- "app/src/test/**"
|
||||||
- "app/src/androidTest/**"
|
- "app/src/androidTest/**"
|
||||||
- "**/*Test.kt"
|
- "**/*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
|
name: PR Auto-Labeler
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: labeler-${{ github.ref }}
|
group: labeler-${{ github.head_ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -20,6 +20,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Label by changed files
|
- name: Label by changed files
|
||||||
uses: actions/labeler@v6
|
uses: actions/labeler@v6
|
||||||
# Reads .github/labeler.yml. Additive only (sync-labels defaults to
|
with:
|
||||||
# false), so manually-added labels and Dependabot's `dependencies`
|
dot: true
|
||||||
# label are never touched.
|
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