lucassabreu / comment-coverage-clover

Github Action that automatically adds a comment with a summary of coverage reports (clover)
https://github.com/marketplace/actions/coverage-report-as-comment-clover
16 stars 4 forks source link

Feature Request: Scope for Comments #32

Closed Floppy012 closed 1 year ago

Floppy012 commented 1 year ago

Hey 👋🏼 It's me again.

I wanted to request a feature that would come in pretty handy: Scoped PR Comments.

In my organization, we're using monorepos that contain backend and frontend code. They are tested by separate frameworks in separate workflows, and thus generate two different coverage reports. We don't want to combine them because different teams work on Frontend/Backend.

My request is to add a feature that allows to set a scope for the PR comment so that multiple comments per PR are possible. In our case that would be one comment for backend coverage and one for frontend coverage.

jacekk commented 1 year ago

@Floppy012 I think you could use signature param.

Check out these examples: https://github.com/lucassabreu/comment-coverage-clover/blob/main/.github/workflows/example.yml . Each signature creates/updates a separate comment in given PR. Like in here: https://github.com/lucassabreu/comment-coverage-clover/pull/31

Floppy012 commented 1 year ago

Uh nice. That was what I'm looking for. Thanks