lcov-reporter-action
lcov-reporter-action copied to clipboard
PR Body Too Long
When running on a medium to large project the output is too large to fit in a PR comment.
request: { hook: [Function: bound bound register], validate: [Object] } },
errors: [
{
resource: 'IssueComment',
code: 'unprocessable',
field: 'data',
message: 'Body is too long (maximum is 65536 characters)'
}
],
documentation_url: 'https://developer.github.com/v3/issues/comments/#create-a-comment'
}
##[error]Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}
It would be good to have an option which shows a stripped or truncated version (maybe just top level projects?). I'm not too familiar with lcov format to determine how feasible this is.
Have the same issue. I think truncated version would be good.
Same issue here :(
My solution was to just modify the code to have the total coverage, but not the full coverage:
exports.comment = function comment(percentage, options) {
return fragment(
`Coverage after merging ${b(options.head)} into ${b(options.base)}`,
table(tbody(tr(th(percentage.toFixed(4), '%'))))
)
}
Would definitely love either a truncated option or maybe even the table is posted in multiple comments
Opened https://github.com/romeovs/lcov-reporter-action/pull/31 to perhaps address this by allowing an option to only report on changed files.