MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
181 stars 60 forks source link

ADD: use of issue-number on push when provided #177

Open VincentAuriau opened 4 months ago

VincentAuriau commented 4 months ago

Changes: When issue-number is provided it is used over the commit sha to define where the comment is made.

Why? Basically I have an issue tracking all the improvements in the development of the tests in a repository - let's say covering the whole code is a long term objective. I wanted the action to regularly update the issue with the latest coverage statistics

Also:

MishaKav commented 4 months ago

Can you please to include all your changes in "sec/index.js" file. Because the "dist" - is only the output for build command.

VincentAuriau commented 4 months ago

It's done ! I'm not sure how I managed to do it with dist directory but somehow it worked. I've copied the changes in src/index.js, I suppose it needs to be checked and dist/ rebuilt...

Thank you !