Repository navigation
docs: correct the changelog.json fields and show a real example - #267
Merged
Merged
Conversation
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.
Follows #266. Updated again when #260 settles the role of the file.
docs/changelog-json.mdis the contract downstream consumers build on, and four of its field descriptions did not match the code. A consumer that truststitleto be the pull request title, orlinkedIssuesto come from GitHub's issue links, builds on something the file does not hold.generaterun 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.description: it carries each pull request description in full, so publishing the file publishes all of them, including notes written for reviewers.titlecorrected (ReleaseChangeResolver.cs): the trimmed title, or, when it says nothing (empty,Merge ..., or exactlywip,update,fix, ...), the first informative line of the description, thenPR #<n>. The fallback reads the description whateverfactBase.depthsays, so a title offixshows a line of the description even attitle-only. A commit-based change carries its subject.linkedIssuescorrected (FactBaseBuilder.cs): the numbers afterclose,fixorresolvein 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:nullfor a commit-based change, which the table did not say.changelog.jsonis meant to be published but carries every pull request description in full #260 ahead of time.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.csandReleasePipeline.cs. The example parses as JSON and is taken from the run'schangelog.json, trimmed but not rewritten.Tests: no test changed; documentation only.