Skip to content

[TASK] Reconcile issue template labels with repository labels #80

Closed

Description

@gerchowl

Description

The issue templates in .github/ISSUE_TEMPLATE/ reference labels that either don't exist in the repository or conflict with the existing label names. This mismatch will cause issues when templates are used — GitHub silently drops labels that don't exist, so new issues won't be labelled correctly.

As noted by @c-vigo in PR #68 comment:

There is a clash between the template labels in .github/ISSUE_TEMPLATE and the default labels (which only apply to new repos, existing ones must be edited manually). The clash will only become visible when these changes are merged into main.

Current mismatches:

Template Label in template Repo label exists? Notes
feature_request.yml enhancement No (feature exists) Name mismatch
ci_build.yml ci No Missing
refactor.yml refactor No Missing
task.yml task No Missing
documentation.yml docs No (documentation exists) Name mismatch
bug_report.yml bug Yes OK

Acceptance Criteria

  • Decide on canonical label names (align templates to repo, or repo to templates)
  • Create missing labels in the repository (or update templates to match existing labels)
  • Verify all issue templates reference labels that exist in the repo
  • Consider adding a label provisioning script or documenting the required labels for new repos

Implementation Notes

Two approaches:

  1. Update the repo labels to match the templates — create ci, refactor, task labels and rename feature → enhancement, documentation → docs.
  2. Update the templates to match existing repo labels — change enhancement → feature, docs → documentation in template files, and create the remaining missing labels.

A provisioning script (create-gh-issue-labels.sh) could also be added so that any new repo gets the expected label set automatically.

Related Issues

Related to #68 (PR where the clash was identified), #67, #63, #61

Priority

Medium

Changelog Category

No changelog needed

Activity

  1. added
    feature
    on Feb 18, 2026
  2. self-assigned this
    on Feb 18, 2026
  3. gerchowl commented on Feb 18, 2026

    @gerchowl
    ContributorAuthor

    Implementation Plan

    Issue: #80
    Branch: feature/80-reconcile-template-labels

    Tasks

    • Task 1: Create .github/label-taxonomy.toml — single source of truth for 7 canonical labels (name, description, color)
    • Task 2: Update repo labels via gh CLI — delete stale labels (documentation, duplicate, good first issue, help wanted, invalid, question), create/update canonical labels from taxonomy
    • Task 3: Rename and consolidate issue templates — bug_report.yml → bug.yml, feature_request.yml → feature.yml (fix enhancement → feature), documentation.yml → docs.yml, merge ci_build.yml + task.yml into chore.yml, keep refactor.yml
    • Task 4: Update create-issue.md command — new label mappings + reference to .github/label-taxonomy.toml
    • Task 5: Create scripts/setup-labels.sh — reads .github/label-taxonomy.toml, idempotent create/update, optional --prune to delete unlisted labels
    • Task 6: Add .github/label-taxonomy.toml to sync manifest — scripts/sync_manifest.py
    • Task 7: Run just sync-workspace — verified source and workspace templates match
    • Task 8: Commit
  4. added
    priority:high
    area:workflow
    effort:small
    semver:patch
    on Feb 18, 2026
  5. added this to the 0.3 milestone on Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workfloweffort:smallfeaturepriority:highsemver:patch

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions