labels: add cleanup-old-labels.sh (delete retired :-scheme labels) #4

Merged
ellen merged 1 commit from labels/cleanup-script into main 2026-07-20 19:43:17 +00:00
Member

Companion to seed-org-labels.sh. Deletes the retired :-scheme labels that the /-scoped taxonomy replaced, so orgs/repos aren't left with duplicates.

Removes (by exact name, where present): agent:plan, agent:dev, agent:test, agent:coordinate, agent:reflect, agent:triage, plan:approved, plan:ready, pr:open, ai:off. Never touches the new /-scoped labels.

Idempotent (skips names not present), and targets both orgs and repos:

ADMIN_PAT=<admin-token> ./cleanup-old-labels.sh org:valssi repo:valssi/ops
  • org:<name> → org label set
  • repo:<owner>/<name> → repo label set

For this rollout: org:valssi (drops the 4 legacy org labels) + repo:valssi/ops (drops the 8 : repo labels). Running it against the freshly-seeded orgs (valssi-ai, valssi-public, techzone) is harmless — nothing matches.

Note: this leaves the /-scoped repo labels in valssi/ops in place (they're duplicated by the org labels but are applied to the epic, so removing them would strip its state/*). Purging those is a separate, optional step. Merge is human-only.

Companion to `seed-org-labels.sh`. Deletes the retired `:`-scheme labels that the `/`-scoped taxonomy replaced, so orgs/repos aren't left with duplicates. **Removes** (by exact name, where present): `agent:plan`, `agent:dev`, `agent:test`, `agent:coordinate`, `agent:reflect`, `agent:triage`, `plan:approved`, `plan:ready`, `pr:open`, `ai:off`. Never touches the new `/`-scoped labels. Idempotent (skips names not present), and targets both orgs and repos: ``` ADMIN_PAT=<admin-token> ./cleanup-old-labels.sh org:valssi repo:valssi/ops ``` - `org:<name>` → org label set - `repo:<owner>/<name>` → repo label set For this rollout: `org:valssi` (drops the 4 legacy org labels) + `repo:valssi/ops` (drops the 8 `:` repo labels). Running it against the freshly-seeded orgs (`valssi-ai`, `valssi-public`, `techzone`) is harmless — nothing matches. Note: this leaves the `/`-scoped **repo** labels in `valssi/ops` in place (they're duplicated by the org labels but are applied to the epic, so removing them would strip its `state/*`). Purging those is a separate, optional step. Merge is human-only.
ellen merged commit 2783543ba5 into main 2026-07-20 19:43:17 +00:00
ellen deleted branch labels/cleanup-script 2026-07-20 19:43:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
valssi-public/agent-workflows!4
No description provided.