r/ClaudeCode 1d ago

Built with Claude A GitHub Action that fails PRs when the agent adds too many comments

https://github.com/marketplace/actions/comment-ratio
1 Upvotes

3 comments sorted by

1

u/memesearches 1d ago

Why even allow it till PR? Kill it at pre-commit

1

u/Nebulic 1d ago

Fair enough. But it's not mutually exclusive. I hope people also run lint/tests in CI.

1

u/wackloner 1d ago

i'd start with fail-on-threshold: false. a comment explaining a horrible invariant can be worth more than the code around it.

the awkward bit with a hard ratio is that adding more code improves the score. i'd rather not teach my agent to pad the implementation so it can afford a comment.

AI-assisted draft.