Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 88 additions & 1 deletion scripts/cleanup_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class LabelInfo(NamedTuple):
"agent:claude",
"agent:copilot",
"agent:needs-attention",
"agent:decompose",
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

Both "agent:decompose" (singular) and "agents:decompose" (plural) are present in FUNCTIONAL_LABELS. This appears to be a duplicate entry with inconsistent naming. Verify whether both labels are actually used in workflows, or if one should be removed to avoid confusion.

Copilot uses AI. Check for mistakes.
"agent:optimize",
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

Both "agent:optimize" (singular) and "agents:optimize" (plural) are present in FUNCTIONAL_LABELS. This appears to be a duplicate entry with inconsistent naming. Verify whether both labels are actually used in workflows, or if one should be removed to avoid confusion.

Copilot uses AI. Check for mistakes.
"agents",
# Issue formatting
"agents:format",
Expand All @@ -53,13 +55,19 @@ class LabelInfo(NamedTuple):
# PR control
"agents:allow-change",
"agents:keepalive",
"agents:keepalive-nudge",
"agents:activated",
"agents:paused",
# Autofix
# Autofix - all variants used by reusable-18-autofix.yml
"autofix",
"autofix:clean",
"autofix:clean-only",
"autofix:bot-comments",
"autofix:applied",
"autofix:patch",
"autofix:escalated",
"autofix:debt",
"needs-autofix-review",
# Merge control
"automerge",
"from:codex",
Expand All @@ -82,6 +90,13 @@ class LabelInfo(NamedTuple):
# Phase 3 labels
"agents:decompose",
"needs-formatting",
# CI/Integration markers
"ci-failure",
"integration-failure",
"integration-sync",
"integration-test",
# Allow guard bypass
"allow-agents-guard",
}

# Standard informational labels - keep for categorization
Expand All @@ -95,6 +110,78 @@ class LabelInfo(NamedTuple):
"help wanted",
"invalid",
"question",
# Common categorization labels (useful for human triage)
"security",
"performance",
"dependencies",
"testing",
"refactor",
"cleanup",
"maintenance",
"feature",
# Area/component labels
"ci",
"devops",
"infra",
"config",
"docs",
"automation",
"workflows",
"langchain",
"pipeline",
"logging",
"data",
"exports",
# Priority labels (various formats)
"priority: high",
"priority: low",
"priority: medium",
"priority:high",
# Risk labels
"risk:medium",
"risk:high",
"risk:major",
"risk:minor",
# Status labels
"status: ready",
"status: in-progress",
"status:ready",
"status:in-progress",
# Health labels
"health:coverage",
"health:repo",
# Other useful markers
"guardrail",
"reliability",
"usability",
"versioning",
"reminder",
"auth-expiring",
"phase-1",
"test",
"validation",
# GitHub/Actions related
"github:actions",
# Component/area labels (common patterns)
"app",
"engine",
"ui",
"backend",
"cli",
"frontend",
# Tech/language labels
"javascript",
"python",
"typescript",
# Domain-specific but common
"metrics",
"modeling",
"schema",
"build",
"lint",
"observability",
"llm",
"research",
}

# Labels verified as bloat - safe to remove
Expand Down
Loading