The machinery LABELS.md promised. labels.yml runs the reconciler on a 15-minute cron plus PR events (pull_request_target — every PR here is from a fork, where pull_request gets a read-only token; no PR code is ever checked out). The script derives each open PR's state:* from GitHub's own facts and converges labels statelessly; stale is judged from real activity (commits, comments, reviews), never label churn, so the sweep cannot un-stale its own mark. actions/labeler applies scope:* from changed paths. CONTRIBUTING.md is the guideline: the PR loop, and who sets which labels. Rehearsed with DRY_RUN=1 against the live repo; shellcheck-clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
22 lines
802 B
YAML
22 lines
802 B
YAML
# path → scope:* map for actions/labeler — the PR half of LABELS.md's scope
|
|
# story (issues are hand-scoped at triage; paths only exist on PRs). Additive
|
|
# only: sync-labels stays off in labels.yml, so a hand-applied scope survives.
|
|
"scope:cli":
|
|
- changed-files:
|
|
- any-glob-to-any-file: ["bin/**", "test/cli.sh"]
|
|
"scope:installer":
|
|
- changed-files:
|
|
- any-glob-to-any-file: ["install.sh"]
|
|
"scope:host":
|
|
- changed-files:
|
|
- any-glob-to-any-file: ["host/**"]
|
|
"scope:tiers":
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
["host/grant-user.sh", "host/revoke-user.sh", "drill/multiuser.sh"]
|
|
"scope:templates":
|
|
- changed-files:
|
|
- any-glob-to-any-file: ["templates/**", "profiles/**"]
|
|
"scope:drill":
|
|
- changed-files:
|
|
- any-glob-to-any-file: ["drill/**"]
|