Skip to content

Commit 394a879

Browse files
Copilotalexr00
andcommitted
Extract labels and assignees from YAML issue templates
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 89dc0f4 commit 394a879

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/issues/issueFeatureRegistrar.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,10 @@ ${options?.body ?? ''}\n
13581358
const about = parsed.description || parsed.about;
13591359
const title = parsed.title;
13601360

1361+
// Extract labels and assignees from YAML
1362+
const labels = parsed.labels && Array.isArray(parsed.labels) ? parsed.labels : undefined;
1363+
const assignees = parsed.assignees && Array.isArray(parsed.assignees) ? parsed.assignees : undefined;
1364+
13611365
// Convert YAML body fields to markdown
13621366
let body = '';
13631367
if (parsed.body && Array.isArray(parsed.body)) {
@@ -1402,7 +1406,7 @@ ${options?.body ?? ''}\n
14021406
}
14031407
}
14041408

1405-
return { title, name, about, body: body.trim() || undefined };
1409+
return { title, name, about, labels, assignees, body: body.trim() || undefined };
14061410
}
14071411

14081412
private async doCreateIssue(

0 commit comments

Comments
 (0)