Skip to content

Commit f6dfe28

Browse files
author
catlog22
committed
refactor(issue): rename 'labels' to 'tags' in issue schemas and related code
1 parent e8e8746 commit f6dfe28

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.claude/workflows/cli-templates/schemas/discovery-finding-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@
118118
"maximum": 5,
119119
"description": "Priority 1-5 (1=critical, 5=low)"
120120
},
121-
"labels": {
121+
"tags": {
122122
"type": "array",
123123
"items": { "type": "string" },
124-
"description": "Suggested labels for the issue"
124+
"description": "Suggested tags for the issue"
125125
}
126126
},
127127
"description": "Pre-filled issue suggestion for export"
@@ -205,7 +205,7 @@
205205
"title": "Add null check in user validation",
206206
"type": "bug",
207207
"priority": 2,
208-
"labels": ["bug", "auth"]
208+
"tags": ["bug", "auth"]
209209
},
210210
"external_reference": null,
211211
"confidence": 0.85,

.claude/workflows/cli-templates/schemas/issues-jsonl-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"type": "string",
3838
"description": "Original source URL (for GitHub issues)"
3939
},
40-
"labels": {
40+
"tags": {
4141
"type": "array",
4242
"items": { "type": "string" },
43-
"description": "Issue labels/tags"
43+
"description": "Issue tags"
4444
},
4545
"extended_context": {
4646
"type": "object",
@@ -120,7 +120,7 @@
120120
"priority": 1,
121121
"context": "Connection pool cleanup only happens when MAX_POOL_SIZE is reached...",
122122
"source": "discovery",
123-
"labels": ["bug", "resource-leak", "critical"],
123+
"tags": ["bug", "resource-leak", "critical"],
124124
"extended_context": {
125125
"location": "storage/sqlite_store.py:59",
126126
"suggested_fix": "Implement periodic cleanup or weak references",

ccw/src/commands/issue.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface Issue {
3333
context: string; // Problem description (single source of truth)
3434
source?: 'github' | 'text' | 'discovery';
3535
source_url?: string;
36-
labels?: string[];
36+
tags?: string[];
3737

3838
// Optional structured fields
3939
expected_behavior?: string;
@@ -354,7 +354,7 @@ function createIssue(data: Partial<Issue>): Issue {
354354
context: data.context || '',
355355
source: data.source,
356356
source_url: data.source_url,
357-
labels: data.labels,
357+
tags: data.tags,
358358
expected_behavior: data.expected_behavior,
359359
actual_behavior: data.actual_behavior,
360360
affected_components: data.affected_components,
@@ -714,14 +714,14 @@ async function listAction(issueId: string | undefined, options: IssueOptions): P
714714
issues = issues.filter(i => statuses.includes(i.status));
715715
}
716716

717-
// Brief mode: minimal fields only (id, title, status, priority, labels, bound_solution_id)
717+
// Brief mode: minimal fields only (id, title, status, priority, tags, bound_solution_id)
718718
if (options.brief) {
719719
const briefIssues = issues.map(i => ({
720720
id: i.id,
721721
title: i.title,
722722
status: i.status,
723723
priority: i.priority,
724-
labels: i.labels || [],
724+
tags: i.tags || [],
725725
bound_solution_id: i.bound_solution_id
726726
}));
727727
console.log(JSON.stringify(briefIssues, null, 2));

ccw/src/core/routes/issue-routes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export async function handleIssueRoutes(ctx: RouteContext): Promise<boolean> {
458458
context: body.context || '',
459459
source: body.source || 'text',
460460
source_url: body.source_url || null,
461-
labels: body.labels || [],
461+
tags: body.tags || [],
462462
created_at: new Date().toISOString(),
463463
updated_at: new Date().toISOString()
464464
};
@@ -517,7 +517,7 @@ export async function handleIssueRoutes(ctx: RouteContext): Promise<boolean> {
517517
}
518518

519519
// Update other fields
520-
for (const field of ['title', 'context', 'status', 'priority', 'labels']) {
520+
for (const field of ['title', 'context', 'status', 'priority', 'tags']) {
521521
if (body[field] !== undefined) {
522522
issues[issueIndex][field] = body[field];
523523
updates.push(field);
@@ -699,7 +699,7 @@ export async function handleIssueRoutes(ctx: RouteContext): Promise<boolean> {
699699
if (issueIndex === -1) return { error: 'Issue not found' };
700700

701701
const updates: string[] = [];
702-
for (const field of ['title', 'context', 'status', 'priority', 'bound_solution_id', 'labels']) {
702+
for (const field of ['title', 'context', 'status', 'priority', 'bound_solution_id', 'tags']) {
703703
if (body[field] !== undefined) {
704704
issues[issueIndex][field] = body[field];
705705
updates.push(field);

0 commit comments

Comments
 (0)