Skip to content

feat(labels): add common-default labels to canonical seed#88

Merged
ArchonVII merged 1 commit into
mainfrom
agent/claude/87-label-seed-expansion
Jun 17, 2026
Merged

feat(labels): add common-default labels to canonical seed#88
ArchonVII merged 1 commit into
mainfrom
agent/claude/87-label-seed-expansion

Conversation

@ArchonVII

Copy link
Copy Markdown
Owner

Closes #87.

What

Expands the canonical label seed (scripts/labels.mjs) with 17 common-default labels, on top of the gate-required set that #84 already seeded (ci:full, auto-triaged, doc-orphan).

Group Labels
Release-note aliases feature, fix, breaking-change
Conventional work types task, ci, build
GitHub built-in defaults duplicate, invalid, question, wontfix
Contributor onboarding help wanted, good first issue, contrib-candidate
Triage states needs-info, needs-reproduction, needs-decision, ready

37 → 54 labels.

Why

feature/fix/breaking-change are release-note categories declared in ArchonVII/.github release.yml but were never seeded — PRs labeled with them (or bots/imported PRs using conventional names) wouldn't group correctly until the label existed in a repo. The rest are the well-known GitHub defaults + standard triage/onboarding labels.

Design notes

  • Single source of truth. archon-setup's applyLabels.mjs delegates to this script, so this one change propagates to the wizard; no snapshot to sync.
  • Colors are sourced. New colors use GitHub's canonical default palette where one exists (duplicate, invalid, question, wontfix, help wanted, good first issue); otherwise they reuse an existing seed color, cited in a trailing comment per the repo's constants rule. Aliases match their canonical label's color so release.yml grouping reads consistently.
  • Audit-safe. The gate-label audit (gate-labels.test.mjs) only fails on referenced-but-unseeded; added labels only grow the informational unreferenced list. No gate label was removed.
  • Deferred: area:* (13), platform:* (3), automated-distribution, managed-baselinearea:/platform: read better as a per-repo opt-in than a uniform block.

Verification

  • npm test → gate-label audit green; 142 tests pass.
  • node --check scripts/labels.mjs clean.
  • (Unrelated: doc-policy-lint.test.mjs fails on local Windows checkouts only — CRLF sensitivity, green in CI; logged separately, pre-existing from feat(lint): add warning-only doc-policy lint #76.)

Follow-up (separate PR, ArchonVII/.github)

Wire labels: ["task"] into .github/ISSUE_TEMPLATE/task.yml now that task is seeded.

Expand scripts/labels.mjs with 17 common-default labels on top of the
gate-required set #84 already seeded (ci:full, auto-triaged, doc-orphan):

- release-note aliases: feature, fix, breaking-change (close categories
  declared in ArchonVII/.github release.yml that were unseeded)
- conventional work types: task, ci, build
- GitHub built-in defaults: duplicate, invalid, question, wontfix
- contributor onboarding: help wanted, good first issue, contrib-candidate
- triage states: needs-info, needs-reproduction, needs-decision, ready

New colors use GitHub's canonical default palette where one exists, else
reuse an existing seed color; each is sourced in a trailing comment.
area:*/platform:* deferred to a future per-repo opt-in.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ArchonVII
ArchonVII marked this pull request as ready for review June 17, 2026 14:54
@ArchonVII
ArchonVII merged commit 3129c15 into main Jun 17, 2026
1 check passed
@ArchonVII
ArchonVII deleted the agent/claude/87-label-seed-expansion branch June 17, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand standard label seed: close automation gaps + add common defaults

1 participant