Skip to content

List every existing label in labels.yml so the sync deletes none - #203

Merged
jantman merged 1 commit into
mainfrom
labels-yml-keep-existing
Nov 20, 2026
Merged

jantman merged 1 commit into
mainfrom
labels-yml-keep-existing

Conversation

@jantman

@jantman jantman commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Add the 8 labels that exist on the repository but are missing from .github/labels.yml, so the labeler workflow doesn't delete them.

labeler.yml runs crazy-max/ghaction-github-labeler whenever labels.yml changes on main. skip-delete isn't set, so every label the file doesn't name is deleted, apart from help* and *issue. The workflow has never run, so merging any change to this file would have deleted all of these:

  • discussion, Docs, needs decision, stale, unreleased fix, unsupported-repo, Waiting For Response: none of them is on any issue or PR today; kept anyway.
  • robot-army: the label that dispatches an issue to robot-army.

They keep their current colors. Only robot-army gets a description.

What the first sync will do when this merges (because the workflow has never run):

  • Deletes nothing.
  • Creates breaking, build, ci, performance, refactoring, removal, style.
  • Applies the file's color or description to bug, duplicate, enhancement, github_actions, help wanted, invalid, question, testing.

The PR run of the labeler is a dry run and shows the same plan.

🤖 Generated with Claude Code

The labeler workflow syncs repository labels to this file whenever it
changes on main, and without skip-delete it removes any label the file
does not name. Eight labels exist on the repository but not here, among
them robot-army, the label that dispatches an issue to robot-army. The
workflow has never run, so the first change to this file would have
deleted all eight.

They are added with their current colors. robot-army also gets a
description; the others keep the empty one they have now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code review
From Claude, via the Claude PR Review workflow -- hence github-actions[bot].

Adds eight existing repository labels to .github/labels.yml so the labeler sync won't delete them. The change is config-only and I found no issues.

No issues found. Checked for bugs and CLAUDE.md compliance.


🔎 9s · 4 turns · $0.0923 · run log

@jantman
jantman merged commit e9bfd43 into main Nov 20, 2026
16 of 18 checks passed
@jantman
jantman deleted the labels-yml-keep-existing branch November 20, 2026 22:36
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.

1 participant