ci: auto-label PRs by changed paths - #67
Merged
Merged
Conversation
The bug form labels issues `platform:*`, but PRs had no auto-labelling. Add actions/labeler (config `.github/labeler.yml`) on `pull_request_target` to tag a PR by the files it touches: frontend / backend / platform:linux|windows|android / ci / documentation — the same taxonomy as the PR template's "Affected layer". Reuses the existing platform:* labels; adds frontend/backend/ci.
This was referenced Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The bug form already labels issues
platform:*from its Platform dropdown, but PRs had no auto-labelling. Addactions/labeler(config.github/labeler.yml) onpull_request_targetto tag a PR by the files it touches, using the same taxonomy as the PR template's "Affected layer":frontend—frontend/**,package.json,bun.lock,biome.jsonbackend—crates/**,src-tauri/**,Cargo.*platform:linux/platform:windows— the OS-specificsrc-tauri/src/desktop/*dirsplatform:android—module/**,crates/kasumi-daemon/**ci—.github/**documentation—**/*.mdReuses the existing
platform:*labels; addsfrontend/backend/ci(created on the repo).Affected layer
frontend/module/scripts/.github/Verification
actionlint .github/workflows/label-pr.ymlcleanactions/labeler@v5pinned by SHA (8558fd74…), matching the repo's SHA-pinning conventionfrontend/backend/cilabels created on the repoNote:
pull_request_targetruns the workflow from the base branch, so this PR won't self-label — it takes effect for PRs opened after merge.Notes for reviewers
pull_request_targetis required for write scope on fork PRs; safe here becauselabeleronly reads the diff's file list + the config from the base branch — it never checks out or runs PR code.Open follow-up (asked separately): issues can't get the
frontend/backend/ciarea labels — the bug form only offers a Platform dropdown. Symmetry would need an "Area" dropdown on the form (or leaving area to maintainer triage). Not in this PR.