davelosert/vitest-coverage-report-action

Getting the error "Body is too long" while trying to create a PR comment

roerohan opened this issue ยท 2 comments

When the action tries to create a PR comment, I'm getting an error:

image

Is there any way to divide the coverage report into multiple comments?

Hey @roerohan , thank you for opening the issue. This was already reported in #190 and is due to the file-coverage-report being too large to post to an Issue.

There is already some work being done in #192 allow to only showcase the changed files in a PR to mitigate this, but it's been inactive for a while. Will try to finish it up myself.

I am also planning to add an option (#191) to disable having the file reporting altogether.

I will close this issue as duplicate, but I am happy to answer any upcoming questions or have discussons in #190 ๐Ÿ™‚

@roerohan : This should be fixed now (at least for most PRs) by only showcasing the changed files in the file-coverage on default.

Let me know if it fixed it for you.