feat(ST-507): split code from title in backlog parser and seed Scrum4Me with codes
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
16a3b139ae
commit
9da9f6ae56
2 changed files with 5 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ export async function loadBacklog(repoRoot: string): Promise<ParsedMilestone[]>
|
||||||
flushPending()
|
flushPending()
|
||||||
const story: ParsedStory = {
|
const story: ParsedStory = {
|
||||||
ref: taskMatch[2],
|
ref: taskMatch[2],
|
||||||
title: `${taskMatch[2]}: ${taskMatch[3]}`,
|
title: taskMatch[3],
|
||||||
acceptance_criteria: '',
|
acceptance_criteria: '',
|
||||||
status: taskMatch[1] === 'x' ? 'DONE' : 'OPEN',
|
status: taskMatch[1] === 'x' ? 'DONE' : 'OPEN',
|
||||||
sort_order: current.stories.length + 1,
|
sort_order: current.stories.length + 1,
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ async function main() {
|
||||||
data: {
|
data: {
|
||||||
user_id: demo.id,
|
user_id: demo.id,
|
||||||
name: 'Scrum4Me',
|
name: 'Scrum4Me',
|
||||||
|
code: 'SCRUM4ME',
|
||||||
description:
|
description:
|
||||||
'Een desktop-first fullstack webapplicatie voor solo developers en kleine Scrum Teams die meerdere softwareprojecten parallel beheren.',
|
'Een desktop-first fullstack webapplicatie voor solo developers en kleine Scrum Teams die meerdere softwareprojecten parallel beheren.',
|
||||||
repo_url: 'https://github.com/madhura68/Scrum4Me',
|
repo_url: 'https://github.com/madhura68/Scrum4Me',
|
||||||
|
|
@ -126,7 +127,8 @@ async function main() {
|
||||||
const pbi = await prisma.pbi.create({
|
const pbi = await prisma.pbi.create({
|
||||||
data: {
|
data: {
|
||||||
product_id: product.id,
|
product_id: product.id,
|
||||||
title: `${ms.key}: ${ms.title}`,
|
code: ms.key,
|
||||||
|
title: ms.title,
|
||||||
description: ms.goal,
|
description: ms.goal,
|
||||||
priority: ms.priority,
|
priority: ms.priority,
|
||||||
sort_order: ms.sort_order,
|
sort_order: ms.sort_order,
|
||||||
|
|
@ -161,6 +163,7 @@ async function main() {
|
||||||
pbi_id: pbi.id,
|
pbi_id: pbi.id,
|
||||||
product_id: product.id,
|
product_id: product.id,
|
||||||
sprint_id: inSprint ? sprint.id : null,
|
sprint_id: inSprint ? sprint.id : null,
|
||||||
|
code: s.ref,
|
||||||
title: s.title,
|
title: s.title,
|
||||||
description: storySummary,
|
description: storySummary,
|
||||||
acceptance_criteria: s.acceptance_criteria,
|
acceptance_criteria: s.acceptance_criteria,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue