feat(charts): publish Insights to GitHub Actions step summary#13
Merged
Conversation
When running under GitHub Actions, append the same charts.md content that's already being inserted into README.md into $GITHUB_STEP_SUMMARY. This makes each cron tick glanceable from the Actions tab — open the run page and the latest Mermaid charts render right there, no need to open README or the live dashboard. Conditional on $GITHUB_STEP_SUMMARY being set so local invocations are unaffected. No data duplication: the same charts.md is reused before it's deleted. Closes #5 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Append the same
charts.mdcontent that's already being inserted intoREADME.mdto$GITHUB_STEP_SUMMARYwhen running under GitHub Actions. The Mermaid charts then render directly on each cron run's Actions page — opening README or the live dashboard becomes optional for a quick glance.charts.mdartifact ingenerate-charts.shbefore it'srm -f'd$GITHUB_STEP_SUMMARY; local invocations are unaffectedCloses #5.
Test plan
bash -n scripts/generate-charts.shpassesshellcheck scripts/generate-charts.shpasses$GITHUB_STEP_SUMMARYset) behaves identically — the newifblock is a no-opgh workflow run collect.ymland confirm the Insights block (Mermaid charts + repository table) renders on the run's summary pageReferences
🤖 Generated with Claude Code