Closed jrichardsz closed 2 years ago
This is a duplicate of #40. So I'm going to close it in a moment. But first.... Several of the inputs really only make sense within the context of GitHub Actions such as those related to failing workflow runs if coverage decreased, etc. To serve as a proper command line tool outside of Actions, the input handling needs to be done differently, such as how default inputs are handled.
I am planning on refactoring input handling for that purpose although it isn't high priority.
I forgot to answer your question about the colors
and intervals
inputs. As an example, consider intervals: 90 75 60 0
and colors: green yellow orange red
. If coverage is at least 90 then color is green. Otherwise if coverage is at least 75 then color is yellow. Otherwise if coverage is at least 60 then color is orange. And otherwise it is red.
Is your feature request related to a problem? Please describe. Is not related to a problem. Is just the request of a piece of documentation in which you show us how to use it directly without github actions
Describe the solution you'd like Maybe on a direct usage section in readme, you could add something like this:
There were many attempts to figure out the relationship between 12 and 13 args (colors and intervals). Maybe this comments could be improved to highlight that relationship
Describe alternatives you've considered Maybe an extra test on https://github.com/cicirello/jacoco-badge-generator/blob/main/tests/tests.py with this direct usage.
Thanks!