Skip to content

fix(curation): read no description from hidden comments or an unfilled template - #197

Merged
goldbarth merged 1 commit into
mainfrom
fix/pull-request-template-body
Sep 21, 2026
Merged

goldbarth merged 1 commit into
mainfrom
fix/pull-request-template-body

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Closes #141

  • Decision: both. HTML comments are stripped from every body, and a body with nothing left but headings and checklist items is treated as absent. Comments alone would not be enough: fix: tell an unreported LLM call from a cheap one #73's template keeps its headings and ticked boxes once the comments are gone.
  • Comments go from every body, not only template-shaped ones: GitHub does not render them, so nobody reading the pull request saw them, and the template's comments are exactly where its examples sit. An unterminated <!-- runs to the end, as GitHub renders it.
  • Found while reproducing: at factBase.depth: title-description-and-issues the template's <!-- ... Closes #123 --> linked issue fix(prompting): say where an outcome comes from, not only what is not one #123 to the change, and a comment containing BREAKING CHANGE: would have flagged it as breaking, because categorization reads the description too.
  • A body with anything besides headings and boxes is kept as written, headings and boxes included: curation removes what the author did not say, it does not edit what they did.
  • PullRequestBody lives in Curation and runs once in ReleaseChangeResolver, so the title fallback, breaking status, linked issues and the prompt all read the same description. Deterministic, [GeneratedRegex], no model involved.
  • docs/changelog-json.md says when description is null now. Type and nullability are unchanged, so no schema version bump; the stored fixtures are fact bases downstream of curation and do not change.

Reproduced as a failing test before the fix (a live run costs tokens): #73's body verbatim became the description, and the fact built from a body with the template's comments carried LinkedIssues: [123].

Checked against real data: the bodies of all 82 merged pull requests in this repository went through the resolver. Exactly two lose their description, #73 and #105, both the untouched template; every other body keeps its text.

Tests: ReleaseChangeResolverTests (#73's body yields no description and does not stand in for an uninformative title, a filled template keeps its text without placeholders, comments stripped inline, multi-line and unterminated, heading- and checklist-only bodies absent, prose with headings and boxes kept verbatim); FactBaseBuilderTests (a template comment links no issue and flags nothing as breaking).

…d template

A pull request whose body was the untouched template became a fact
description, and the template's comments were read as facts: its
"Closes #123" example linked issue #123 at depth
title-description-and-issues, and a comment containing BREAKING CHANGE:
would have flagged the change as breaking.

HTML comments are now removed from every body, since GitHub does not show
them to a reader, and a body with nothing left but headings and checklist
items is no description. Everything downstream reads the same cleaned
description.

Closes #141
@goldbarth
goldbarth merged commit 6cd5e21 into main Sep 21, 2026
4 checks passed
@goldbarth
goldbarth deleted the fix/pull-request-template-body branch September 21, 2026 10:25
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.

An unfilled PR template is taken as a change description

1 participant