Skip to content

Conversation

@kieferro
Copy link
Member

This adds the functionality for the COMMENT_TEMPLATE parameter as discussed in #11. Also, this parameter has been added to the README.

@github-actions
Copy link

github-actions bot commented Jun 27, 2022

Coverage report

The coverage rate went from 100% to 100% ➡️
The branch rate is 100%

100% of new lines are covered.

Diff Coverage details (click to unfold)

coverage_comment/settings.py

100% of new lines are covered (100% of the complete file)

coverage_comment/main.py

100% of new lines are covered (100% of the complete file)

coverage_comment/template.py

100% of new lines are covered (100% of the complete file)

@kieferro kieferro marked this pull request as ready for review June 27, 2022 23:05
@kieferro kieferro requested a review from ewjoachim June 28, 2022 19:10
@kieferro kieferro requested a review from ewjoachim June 30, 2022 15:21
@ewjoachim
Copy link
Member

ewjoachim commented Jun 30, 2022

I've started working on a PR-on-your-PR to address different points, I'll try to post it in the close future. Being sick makes it complated to evaluate how much clear-mind time I'll have on my hands in the next days (and how much I'll dedicate to coding 😅 )

@ewjoachim
Copy link
Member

https://github.com/kieferro/python-coverage-comment-action/pull/2 < the WIP. If you like proper code and all, don't look yet :)

@ewjoachim
Copy link
Member

ewjoachim commented Jul 1, 2022

@kieferro aaaaand done. I've reworked the PR and added my suggestions (working with blocks and template inheritance, documentation, etc). Also, I included a fix for the issue that currently makes the CI red (it's unrelated. also, due to the way the CI is set up, and the nature of the issue, it will only go green again after we merge :( )

ewjoachim and others added 3 commits July 2, 2022 11:37
…nrelated changes

* [Unrelated] Missing annotations

* Add plenty of blocks in the template

* get_markdown_comment supports template inheritance

* Update call in main

* (Remove extra test added in main. Sorry ^^' )

* Define COMMENT_TEMPLATE in the settings

* Documentation

* [Unrelated] Fixing error that makes the CI red.
@kieferro kieferro changed the title Add COMMENT_TEMPLATE as parameter Add possibility to extend blocks of the comment template Jul 2, 2022
@ewjoachim ewjoachim merged commit c16f8c6 into py-cov-action:v2 Jul 2, 2022
@kieferro kieferro deleted the comment-template branch July 2, 2022 16:42
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.

2 participants