thollander / actions-comment-pull-request

GitHub action to comment pull request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split PR comment if it is too long

ofilippov-vitech opened this issue · comments

Version:

thollander/actions-comment-pull-request@v2

Issue:

Run thollander/actions-comment-pull-request@v2
Error: An error occurred trying to start process '/home/runner/runners/2.310.2/externals/node16/bin/node' with working directory '/home/runner/work/somerepo/somerepo'. Argument list too long

The comment I am trying to add to PR is terraform plan, which size is bigger than can be added.

Possible solution

Ideally, PR comment might be divided into several parts and added one by one in PR

What's the length allowed currently?

These limitation should be clearly stated in README.md :(

https://github.com/dead-claudia/github-limits?tab=readme-ov-file#issue-description 65536 characters

I've implemented the feature for a new message in a fork, in case you want to integrate it here :
https://github.com/pass-culture-github-actions/comment-pull-request/blob/main/src/main.ts#L79

I was too lazy to integrate it for update etc... reason why I didn't open a PR.