Skip to content

docs: correct the changelog.json fields and show a real example - #267

Merged
goldbarth merged 2 commits into
mainfrom
docs/changelog-json
Sep 29, 2026
Merged

goldbarth merged 2 commits into
mainfrom
docs/changelog-json

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #266. Updated again when #260 settles the role of the file.

  • Why: docs/changelog-json.md is the contract downstream consumers build on, and four of its field descriptions did not match the code. A consumer that trusts title to be the pull request title, or linkedIssues to come from GitHub's issue links, builds on something the file does not hold.
  • Consumers: the widget and the RSS feed are gone (Widget - JS snippet over changelog.json #32 and RSS feed as a static file from the fact base #33 are parked). The page names what reads the file today: a tool that reacts to a release, such as a webhook.
  • The current release only: every generate run overwrites the file, by design. One file is one release notification, so a consumer that receives it needs nothing else and has nothing to tell apart from earlier releases.
  • A warning on description: it carries each pull request description in full, so publishing the file publishes all of them, including notes written for reviewers.
  • title corrected (ReleaseChangeResolver.cs): the trimmed title, or, when it says nothing (empty, Merge ..., or exactly wip, update, fix, ...), the first informative line of the description, then PR #<n>. The fallback reads the description whatever factBase.depth says, so a title of fix shows a line of the description even at title-only. A commit-based change carries its subject.
  • linkedIssues corrected (FactBaseBuilder.cs): the numbers after close, fix or resolve in any form and a #, in the title or description. No issue is read.
  • renderings: Markdown, only the audiences the run rendered, and at least one in any written file, because a run in which no audience rendered writes nothing (ReleasePipeline.cs).
  • description: null for a commit-based change, which the table did not say.
  • "the file is meant to be published" becomes "the file may be published", so the page does not answer changelog.json is meant to be published but carries every pull request description in full #260 ahead of time.
  • A real example: three of the six changes of Chartula's own v0.1.0-preview.3, with the renderings and provenance its run wrote. docs: add the changelog Chartula generated for 0.1.0-preview.2 #246 shows a fact that no rendering carries. The page says what was cut: descriptions after their first line, and the entries of the other three changes.

Verified: each field description checked against ChangelogDocument.cs, ReleaseChangeResolver.cs, FactBaseBuilder.cs and ReleasePipeline.cs. The example parses as JSON and is taken from the run's changelog.json, trimmed but not rewritten.

Tests: no test changed; documentation only.

@goldbarth
goldbarth merged commit 13434d8 into main Sep 29, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/changelog-json branch September 29, 2026 19:16
@goldbarth goldbarth self-assigned this Sep 29, 2026
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