You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve PR comment to be more professional and informative (#6)
## Summary
- Replace bare metrics table with contextual pass/total ratio and config
path reference
- Each violation category rendered as its own collapsible `<details>`
section instead of one monolithic block
- Truncated examples now show "…and N more" count
- Clean single-line success message (no table with zeros)
- Subtle footer linking to the full workflow run and StructLint repo
### Before
```
## ✅ StructLint Validation
| Metric | Count |
|--------|-------|
| Checks passed | 12 |
| Violations | 3 |
<details>
<summary>Violation Details</summary>
### ⚠️ Files not matching any allowed naming pattern (3)
- `Disallowed file naming pattern found: ...`
- `Disallowed file naming pattern found: ...`
- `Disallowed file naming pattern found: ...`
</details>
```
### After (pass)
```
## StructLint — All checks passed
**12** rules validated against `.structlint.yaml`. No violations found.
---
View full run · Powered by StructLint
```
### After (fail)
```
## StructLint — 3 violation(s) found
**9**/12 rules passed · **3** violation(s) detected against `.structlint.yaml`.
▸ Files not matching any allowed naming pattern (3)
- `Disallowed file naming pattern found: ...`
- `Disallowed file naming pattern found: ...`
- …and 1 more
---
View full run · Powered by StructLint
```
## Test plan
- [ ] Trigger workflow on a clean repo — verify success comment renders
correctly
- [ ] Trigger workflow with intentional violations — verify collapsible
categories and truncation
- [ ] Verify "View full run" link points to the correct workflow run
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments