Promote intakes with flavor and copy residual origin.
CUST-WP-0072-T03: new workplans from intake promotion and register bootstrap declare flavor and depends_on. Assistant: grok Assistant-Session: 01a09dc1-b21e-77e1-919e-fcad2f82b267
This commit is contained in:
parent
1a3375094f
commit
b434deafc7
2 changed files with 16 additions and 0 deletions
|
|
@ -128,6 +128,17 @@ def _promote_to_workplan(
|
|||
|
||||
today = date.today().isoformat()
|
||||
body = intake.get("description") or intake["title"]
|
||||
flavor = (
|
||||
"residual"
|
||||
if (intake.get("origin") or "") in ("residual", "handoff")
|
||||
else "planning"
|
||||
)
|
||||
origin_lines = ""
|
||||
if intake.get("origin"):
|
||||
origin_lines = (
|
||||
f"origin: {intake.get('origin')}\n"
|
||||
f"origin_ref: {intake.get('id')}\n"
|
||||
)
|
||||
content = (
|
||||
f"---\n"
|
||||
f'id: {new_id}\n'
|
||||
|
|
@ -136,6 +147,9 @@ def _promote_to_workplan(
|
|||
f"domain: {domain}\n"
|
||||
f"repo: {repo_slug}\n"
|
||||
f"status: proposed\n"
|
||||
f"flavor: {flavor}\n"
|
||||
f"depends_on: []\n"
|
||||
f"{origin_lines}"
|
||||
f"owner: codex\n"
|
||||
f'created: "{today}"\n'
|
||||
f'updated: "{today}"\n'
|
||||
|
|
|
|||
|
|
@ -739,6 +739,8 @@ title: "Bootstrap State Hub integration"
|
|||
domain: {domain}
|
||||
repo: {repo_slug}
|
||||
status: ready
|
||||
flavor: planning
|
||||
depends_on: []
|
||||
owner: codex
|
||||
topic_slug: {topic_slug}
|
||||
created: "{today}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue