Skip to content

Auto-labeler improvements: needs-* cleanup, apply-level, and drift fix#423

Merged
riaankleinhans merged 1 commit into
mainfrom
update-label-rules-and-drift
May 13, 2026
Merged

Auto-labeler improvements: needs-* cleanup, apply-level, and drift fix#423
riaankleinhans merged 1 commit into
mainfrom
update-label-rules-and-drift

Conversation

@riaankleinhans
Copy link
Copy Markdown
Contributor

Port the same improvements from cncf/toc#2158 and cncf/toc#2159.

labels.yaml:

  • Add remove-needs-triage/kind/group/priority/area/status mirror rules so needs-* helper labels are removed automatically whenever the corresponding real label is applied (regardless of how it was applied)
  • Add remove-dd-needs-triage: removes dd/needs-triage when any dd/triage/* label is present
  • Add apply-level: new /level command that removes all other level/* labels before applying the chosen one (mutual exclusivity)

detect-label-drift.yml:

  • Add pull-requests: write permission
  • Add 'Fix stale helper labels on open issues and PRs' step that retrospectively cleans up stale needs-* labels on all open issues and PRs

README_LABELING.md:

  • Document /level slash command
  • Expand Auto-Labeling section with needs-* removal table and mutually exclusive label groups subsections

@github-actions github-actions Bot added needs-triage Indicates an issue or PR that has not been triaged yet (has a 'triage/foo' label applied) needs-kind Indicates an issue or PR that is missing an issue type or kind (a kind/foo label) needs-group Indicates an issue or PR that has not been assigned a group (toc or tag/foo label applied) needs-priority Indicates an issue or PR missing a priority label needs-area Indicates an issue or PR missing an area label needs-status Indicates an issue or PR missing a status label labels May 13, 2026
Port the same improvements from cncf/toc#2158 and cncf/toc#2159.

labels.yaml:
- Add remove-needs-triage/kind/group/priority/area/status mirror rules so
  needs-* helper labels are removed automatically whenever the corresponding
  real label is applied (regardless of how it was applied)
- Add remove-dd-needs-triage: removes dd/needs-triage when any dd/triage/*
  label is present
- Add apply-level: new /level <value> command that removes all other level/*
  labels before applying the chosen one (mutual exclusivity)

detect-label-drift.yml:
- Add pull-requests: write permission
- Add 'Fix stale helper labels on open issues and PRs' step that
  retrospectively cleans up stale needs-* labels on all open issues and PRs

README_LABELING.md:
- Document /level <value> slash command
- Expand Auto-Labeling section with needs-* removal table and mutually
  exclusive label groups subsections

Signed-off-by: Riaan Kleinhans <riaankleinhans@gmail.com>
@riaankleinhans riaankleinhans force-pushed the update-label-rules-and-drift branch from 54c1188 to 5399039 Compare May 13, 2026 12:22
@riaankleinhans riaankleinhans merged commit 2141fde into main May 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area Indicates an issue or PR missing an area label needs-group Indicates an issue or PR that has not been assigned a group (toc or tag/foo label applied) needs-kind Indicates an issue or PR that is missing an issue type or kind (a kind/foo label) needs-priority Indicates an issue or PR missing a priority label needs-status Indicates an issue or PR missing a status label needs-triage Indicates an issue or PR that has not been triaged yet (has a 'triage/foo' label applied)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant