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]: Ability to specify a name / additional detail for the coverage reports #30

Closed benh-dug closed 1 year ago

benh-dug commented 1 year ago

Feature description

Hi,

I'm currently using your action in a mono repo where we have different solutions that track coverage separately but all within the same repo.

I had no issues using separate paths and diff storage locations to get separate comments published (Which worked due to the path being used as the header for marocchino/sticky-pull-request-comment).

I was hoping to get some way to delineate between these comments without having to open the summary and check the contents.

image

Code of Conduct

Contribution Guidelines

Security Policy

cicdguy commented 1 year ago

Hi, thanks for the feature request! I think this is very much doable via an input. Will let you know when the feature has been added and instructions on how to use it.

cicdguy commented 1 year ago

This is now available in the form of an input called coverage-summary-title.

You should be able to override the "Code Coverage Summary" title using this input. This will help you delineate between the various code coverage reports in your monorepo.

benh-dug commented 1 year ago

Thanks for the quick turnaround.

Works perfectly for what I need.

Cheers