Repository navigation
fix(curation): read no description from hidden comments or an unfilled template - #197
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #141
<!--runs to the end, as GitHub renders it.factBase.depth: title-description-and-issuesthe 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 containingBREAKING CHANGE:would have flagged it as breaking, because categorization reads the description too.PullRequestBodylives inCurationand runs once inReleaseChangeResolver, so the title fallback, breaking status, linked issues and the prompt all read the same description. Deterministic,[GeneratedRegex], no model involved.docs/changelog-json.mdsays whendescriptionisnullnow. 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).