ArtiomTr/jest-coverage-report-action

Feature request: Custom GitHub Bot comments

camelmasa opened this issue · 2 comments

Idea

We are currently using the repository that forked this action in our private repository. The private repository is a monorepo, so this Actions will make multiple comments within a single pull request.
Therefore, it was necessary to narrow down the content in the comments to only the necessary information and remove the noisy parts.

Hide footer part
camelmasa/jest-coverage-report-action@0f05710

Hide formatRunReport part
camelmasa/jest-coverage-report-action@5497884

Description

The corresponding part has been deleted in the forked repository, but it would be ideal if options could be specified with with in the GitHub workflow.

If you are okay with this idea, I would like to create a Pull Request.

Hello @camelmasa 👋,

Yeah, that would be a nice feature for people who don't want to see test information in this report. I think we can add one more value for the output option

output:
required: false
description: What output should action produce? `comment` - add comment to PR, `report-markdown` - report markdown text in "outputs.report".
default: comment

It could be something like report-markdown-tiny or report-markdown-small, something like this.

If you are okay with this idea, I would like to create a Pull Request.

PRs are welcome, so feel free to implement this feature!

Sorry, I decided to solve my challenge by way of combine test coverages.
Like this https://github.com/Shopify/cli/blob/main/.github/actions/run-and-save-test-coverage/action.yml.