insightsengineering / coverage-action

Github Action that generates a coverage summary using a Cobertura XML report
https://github.com/marketplace/actions/code-coverage-report-action
MIT License
16 stars 7 forks source link

[Feature Request]: Code Coverage Summary could be collapsed by default #23

Closed andylolz closed 1 year ago

andylolz commented 1 year ago

Feature description

First of all, thanks for this project, itโ€™s really nice ๐Ÿ™๐Ÿป

Extremely cool that the action will add a comment to a PR with the coverage report. For large repos with lots of files, this report can be very long. This currently means that the comment in the PR can be very long too.

To mitigate this, we could hide the report by default, using the <details> disclosure element (which is supported by github markdown).

Iโ€™ve included a demo below.


Code Coverage Summary

``` Report goes here ```

Diff against main

Diff goes here

Code of Conduct

Contribution Guidelines

Security Policy

cicdguy commented 1 year ago

Great idea and thanks for the PR!

cicdguy commented 1 year ago

Released in https://github.com/insightsengineering/coverage-action/releases/tag/v2.3.0

andylolz commented 1 year ago

Amazing! ๐ŸŽ‰ (And apologies for the syntax error ๐Ÿ˜ฌ )