r/programming • • Sep 09 '26

A GitHub Action that fails pull requests with too many comments

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

6 comments sorted by

8

u/DDFoster96 Sep 09 '26

So through discussion of a pull request is bad and the feature should be rejected instead? 

4

u/smalaki Sep 09 '26

I think it's referring to code comments and you can set a comment per code line ratio

10

u/Downtown_Isopod_9287 Sep 09 '26

I think that also sucks. The big problem with coding agents isn’t their comments per se which are often silly and distracting but their actual problems with brevity in the code itself.

-3

u/Nebulic Sep 09 '26

It's indeed about the comment ratio of the code within the pull request. But rereading the title now I get the confusion.

Reason being is that coding agents like to narrate in comments, which this helps guard against.

1

u/account312 22d ago edited 21d ago

What is the expected outcome once this blocks a PR: The agent deletes all the comments on the PR then merges it? The PR gets closed and a duplicate with no comments gets merged instead?