refactor: improve PR comment to be more professional and informative#6
Merged
machado144 merged 1 commit intomainfrom Mar 8, 2026
Merged
refactor: improve PR comment to be more professional and informative#6machado144 merged 1 commit intomainfrom
machado144 merged 1 commit intomainfrom
Conversation
- Show config file path and pass/total ratio for context - Each violation category gets its own collapsible section - Show "…and N more" when examples are truncated - Clean success message without unnecessary table - Subtle footer with link to full run and StructLint repo Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
✅ StructLint Validation
|
There was a problem hiding this comment.
Core Changes
- Refactored the GitHub Action's summary generation to provide a more detailed and user-friendly output.
- Introduced a new format for success and failure messages, including a pass/total ratio and reference to the config path.
- Enhanced violation reporting by rendering each category in a collapsible
<details>section, with truncated examples and a count of remaining violations. - Added a subtle footer with links to the full workflow run and the StructLint repository.
Verdict
Approve: The changes significantly improve the readability and utility of the GitHub Action's output without introducing any functional regressions or critical issues.
Code review performed by GEMINI - gemini-2.5-flash.
There was a problem hiding this comment.
Core Changes
- Refactored the GitHub Actions job summary and PR comment generation logic to provide a more professional and informative output.
- Introduced a new markdown format for both successful and failed validation runs, including a clear pass/fail ratio and reference to the config path.
- Implemented collapsible
<details>sections for each violation category, with truncated examples and a count of remaining violations. - Added a subtle footer linking to the full workflow run and the StructLint repository.
Verdict
Approve: The changes correctly implement the described improvements to the action's output, enhancing readability and professionalism without introducing any functional regressions or critical issues.
Code review performed by GEMINI - gemini-2.5-flash.
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
<details>section instead of one monolithic blockBefore
After (pass)
After (fail)
Test plan
🤖 Generated with Claude Code