Skip to content

fix(lifecycle): extract one-liner from summary body when not in frontmatter#921

Open
j2h4u wants to merge 1 commit intogsd-build:mainfrom
j2h4u:fix/one-liner-extraction
Open

fix(lifecycle): extract one-liner from summary body when not in frontmatter#921
j2h4u wants to merge 1 commit intogsd-build:mainfrom
j2h4u:fix/one-liner-extraction

Conversation

@j2h4u
Copy link
Contributor

@j2h4u j2h4u commented Mar 3, 2026

What

Adds extractOneLinerFromBody() helper to core.cjs, used as fallback in cmdSummaryExtract and cmdMilestoneComplete when the frontmatter one-liner field is empty.

Why

The summary template writes the one-liner as a **bold** markdown line after the # Phase N heading, but the code only checked frontmatter's one-liner field — which is often empty. This caused summary-extract to return null and milestone complete to miss accomplishments.

Testing

  • Tested on Linux
  • Tested on macOS
  • Tested on Windows

Checklist

  • Follows GSD style (no enterprise patterns, no filler)
  • Updates CHANGELOG.md for user-facing changes
  • No unnecessary dependencies added
  • Works on Windows (no path-sensitive changes)

Breaking Changes

None

…matter

The summary template puts the one-liner as a `**bold**` line after the
`# Phase N` heading, but `cmdSummaryExtract` and `cmdMilestoneComplete`
only checked frontmatter `one-liner` field — which is often empty.

Adds `extractOneLinerFromBody()` to core.cjs as a fallback that parses
the first `**...**` line after the heading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j2h4u j2h4u requested a review from glittercowboy as a code owner March 3, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant