Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: allow skipping files or whole comments depending on total and minimum coverage #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

swistakm
Copy link
Contributor

In our organization we have a lot of projects with coverage automation. We've found that it works for us best limit the amount of automation noise by showing only reports when specific thresholds are not satisfied.

This change adds two parameters:

  • skip_above_minimum skips files in report that meet the specified minimum coverage threshold
  • skip_report_above_minimum skips whole comment if project total coverage meets the specified minimum coverage threshold

We've found this particular change useful in our setup so I'm sharing it as a contribution to upstream.

@github-actions
Copy link

File Coverage
All files 99%
src/action.js 99%
src/cobertura.js 98%

Minimum allowed coverage is 75%

Generated by 🐒 cobertura-action against cc02cae

@swistakm
Copy link
Contributor Author

swistakm commented May 5, 2021

Friendly bump :)

@hannseman
Copy link
Contributor

Thanks for the PR and sorry about the really late reply. This looks really good, if you can fix the conflict and rebuild the action we can get this merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants