fix(labels): default bootstrap to the house taxonomy and make the dry run truthful #18
No reviewers
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea!18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/8-label-bootstrap-house"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
gitea_label_bootstraphard-coded the upstream project's 34-label taxonomy (type/feature,type/tech-debt,priority/critical|high|medium|low,status/*,scope/*,risk/*,signal/*) and would add ~30 foreign labels to every pvlb repo. The dry run also always said0 label(s) planned/createdbecause the formatter counteddata.createdwhile the plan only returneddata.missing.This PR:
type/task,type/bug,area/host|backup|forgejo|dsh|security,priority/now|next|later,needs-operator(11 labels);taxonomy: "house" | "upstream"(defaulthouse); an unknown value fails;missing/missingCountfrom the plan and lists every missing label in the dry run;Verification
test/label-bootstrap.test.mjs: house set is exactly the 11 names (no status/scope/risk/signal), upstream is 34, dry run counts/ lists missing, zero only when complete, apply creates only missing (9 of 11 when 2 exist), upstream opt-in, unknown taxonomy fails, failed creates reported.npm test81/81, leak scan clean,node --checkclean.ml-lab/tardits(had onlytype/bug):10 of 11 label(s) missingwith the exact list;0 label(s) missing — repository already has all 11 labels;gitea_labels list→ exactly the 11 house labels.The house set was intentionally left on that lab repo.
Acceptance (from #8)
status/*,scope/*,risk/*,signal/*unless requested.AGENTS.mdis updated in a follow-up docs commit.Closes #8.