Hello, is there any plan to let user specifies their own coverage level icon? Personally, 80% is too low to be considered as high / green. Cheers.
|
function getCoverageLevelImage(percent) { |
|
// https://github.com/istanbuljs/istanbuljs/blob/c1559005b3bb318da01f505740adb0e782aaf14e/packages/istanbul-lib-report/lib/watermarks.js |
|
if (percent >= 80) { |
|
return COVERAGE_LEVEL_IMAGE.high; |
|
} else if (percent >= 50) { |
|
return COVERAGE_LEVEL_IMAGE.medium; |
|
} else { |
|
return COVERAGE_LEVEL_IMAGE.low; |
|
} |
|
} |
Hello, is there any plan to let user specifies their own coverage level icon? Personally, 80% is too low to be considered as high / green. Cheers.
report-nyc-coverage-github-action/src/format.js
Lines 76 to 85 in 0497921