Skip to content

Statistics: add GitHub Actions workflow - #4295

Draft
ddbeck wants to merge 2 commits into
web-platform-dx:mainfrom
ddbeck:statistics-add-github-actions-workflow-for-produ/vxuyrykmprkx
Draft

Statistics: add GitHub Actions workflow#4295
ddbeck wants to merge 2 commits into
web-platform-dx:mainfrom
ddbeck:statistics-add-github-actions-workflow-for-produ/vxuyrykmprkx

Conversation

@ddbeck

@ddbeck ddbeck commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

This adds a GitHub Actions workflow that posts a comment with the results of stats-report.ts to a designated issue based on a nominated pair of commits. By itself, this won't be terribly useful. In a follow up PR, I'll extend this to post on a schedule, like I previously did manually in #788.

It's GitHub Actions, so this is tough to review. Mostly, I suggest looking at the run steps to make sure I'm not doing anything confusing or destructive. I imagine "add a comment to explain this" as the most likely thing you'll find here.

If you really want to test this, you can push this branch to your own fork, then run a command like:

YOU="your_github_username"
ISSUE="an issue number goes here"
gh workflow run -R $YOU/web-features post_stats.yml --ref=statistics-add-github-actions-workflow-for-produ/vxuyrykmprkx -f issue_number=$ISSUE -f previous=(git rev-parse HEAD~) -f current=(git rev-parse HEAD)

Or you could just trust me that I've done this a dozen times myself. 😓

Depends on #4294.

Towards #3510.

@github-actions github-actions Bot added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Sep 2, 2026
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
ddbeck force-pushed the statistics-add-github-actions-workflow-for-produ/vxuyrykmprkx branch from 310ce55 to f019631 Compare September 2, 2026 16:00
@ddbeck ddbeck changed the title Statistics: add GitHub actions workflow Statistics: add GitHub Actions workflow Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant