feat: compact pr-comment format for GitHub Action PR comments#80
Merged
feat: compact pr-comment format for GitHub Action PR comments#80
Conversation
Add a new `--format pr-comment` output that generates severity-tiered, scannable PR comments (10 lines vs 146 for markdown). Designed to make every CI run visible to PR reviewers — security findings, regressions, schema drift, and quality warnings at a glance. - New `src/reporters/pr-comment.ts` with Run + Diff artifact support - Tiered output: Security (red) → Breaking (red) → Quality (yellow) → Summary - Max 5 items per section with overflow truncation - Health score, capability counts, and branded footer with star link - Action updated to use pr-comment format by default - 14 new tests, all 236 tests pass Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
🎉 This PR is included in version 0.19.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
--format pr-comment— a compact, severity-tiered output designed for GitHub PR comments--format markdown(93% reduction)pr-commentformat by defaultWhat it looks like
When issues found:
When all clear:
Design
Files changed
src/reporters/pr-comment.tssrc/index.tssrc/commands/helpers.tssrc/commands/legacy.tssrc/commands/diff.tsaction/action.ymltests/pr-comment.test.tsTest plan
npm run build— clean compilenpx vitest run— 236/236 tests pass (14 new)mcp-observatory report <artifact> --format pr-commentagainst fixture server🤖 Generated with Claude Code