Skip to content

chore(github): delete the ten labels that #5503 left live #7951

Backlog

Description

@dan-petty

Problem or Motivation

#5503 added a removed list to .github/labels.yml so that devops gh label sync deletes ten unused labels. No sync ran after its merge. A read on 2026-11-30 showed that the repository still holds all ten: review/ai-reviewed, review/approved, review/changes-requested, documentation, duplicate, good first issue, help wanted, invalid, question and wontfix.

Pull request #7948 renders .github/labels.yml from the repository template, and the render holds no removed list. After that merge, a plain devops gh label sync deletes none of the ten labels.

Proposed Solution & Architectural Design

A person chooses to delete the ten labels or to keep them. A deletion also takes the label off each old issue, and git cannot undo it.

To delete them, run these commands on a checkout of main. The commit d766fbf59 holds the last removed list. Read the dry run first. The sync also creates or updates each other label that the old file declares.

git show d766fbf59:.github/labels.yml > /tmp/labels-5503.yml
uv run devops gh label sync --file /tmp/labels-5503.yml --dry-run
uv run devops gh label sync --file /tmp/labels-5503.yml

If the labels stay, close this issue as not planned. The labels then stay on GitHub, and no file declares them.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

devops gh label sync covers the need. The change builds nothing.

Source

Source: #7948

Alternatives check of 2026-11-30: not-applicable.
Class: chore, no model call.
Tool: none found.

Activity

  1. added
    type/chore
    scope/github
    source/agent
    status/new
    effort/low
    value/low
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: Unused labels cause no user-facing problem, no CI failure, and no blocker; nothing waits for this cleanup.
  3. added
    priority/p3-low
    on Nov 30, 2026
  4. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Next step: this item cannot be built as written. Edit the body to run refine again.

    Reason: The item asks for one live GitHub label operation. It changes no repository file, so one pull request cannot deliver it. The deletion also takes the ten labels off each old issue, and git cannot undo that. A person must accept that loss before the run.

    Evidence: .github/labels.yml header: the template writes the file from the answers scopes, scope_descriptions and extra_labels, and a person must not edit it here. The commands in the issue run git show d766fbf59:.github/labels.yml and uv run devops gh label sync --file /tmp/labels-5503.yml; they change GitHub labels only. AGENTS.md rule 1 says one issue, one pull request. AGENTS.md rule 8 forbids a pull request that only updates tracking. Pull request #7948 removed the removed list from the render, so the labels file holds no removed list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p3-lowscope/githubsource/agentstatus/newtype/chorevalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions