Show what's new after an update - #84
Merged
Merged
Conversation
Release notes are GitHub's generated notes, grouped by PR label (.github/release.yml). The Release workflow bakes the last ten releases' notes into the app as WhatsNew.md (scripts/release_notes.sh); the app shows the unseen ones once after an update, and all of them from Help > What's New in Diffier.
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.
What
whats-new; Escape closes it.main/whats-new.ts(zero deps) strips theby @author in <url>tail, New Contributors and Full Changelog, and compares versions numerically. "Seen" iswhatsNewSeenin settings, keyed onapp.getVersion(); the first window to boot marks it, so only that window shows the dialog.release.ymlrunsscripts/release_notes.shright after the release is created, writing that release's notes plus the nine before it intoWhatsNew.md, whichpackage.jsonfilesships. Baked rather than fetched: works offline and always matches the build..github/release.yml: groups PRs by label;internalanddocumentationare left out. Theinternallabel now exists.next_version.shreads those, not PR titles.Checked
yarn typecheck,yarn test(newtest/whats-new.test.ts: parsing, numeric order 0.0.10 > 0.0.8, fresh install, all-internal release dropped) andnode test/ui.test.jsall pass.shellcheckis clean on the script.scripts/release_notes.sh v0.0.7against the real releases parses to the expected three entries.WhatsNew.md: the dialog appeared at boot andwhatsNewSeenwas recorded.Not checked
WhatsNew.mdfrom the asar.