Statistics: generate a markdown report from stats.ts - #4294
Open
ddbeck wants to merge 1 commit into
Open
Conversation
ddbeck
force-pushed
the
statistics-generate-a-markdown-report-from-stats/vtmqyymrlxwp
branch
from
September 2, 2026 15:49
637382d to
cbe8d0b
Compare
This is probably only going to ever run in GitHub Actions workflows, so this doesn't need to be terribly ergonomic, but if you want to try it, run: npm run --silent stats -- | npx tsx ./scripts/stats-report.ts -
ddbeck
force-pushed
the
statistics-generate-a-markdown-report-from-stats/vtmqyymrlxwp
branch
from
September 2, 2026 16:00
cbe8d0b to
53c63aa
Compare
ddbeck
marked this pull request as ready for review
September 2, 2026 16:01
Elchi3
reviewed
Sep 3, 2026
Elchi3
left a comment
Collaborator
There was a problem hiding this comment.
This seems to work. Two questions:
- Is "Net" supposed to be a number like "+42"? We don't want percentages anymore?
- The "Before" and "After" headings have no date anymore, leaving the reader wondering: before and after what?
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.
This generates a Markdown report from
stats.ts, for a comment suitable for a successor to #788.You can see a rendered example in ddbeck#37 (comment).
You can try this yourself by running a command line
npm run --silent stats -- --previous-release=latest | npx tsx ./scripts/stats-report.ts -. That said, I don't really expect any humans to run this; it'll be used by GitHub Actions workflows, coming soon in follow up PRs.Depends on #4293.Towards #3510.