diff --git a/coverage_comment/template_files/comment.md.j2 b/coverage_comment/template_files/comment.md.j2 index 650ade22..8e4e2063 100644 --- a/coverage_comment/template_files/comment.md.j2 +++ b/coverage_comment/template_files/comment.md.j2 @@ -109,7 +109,8 @@ {# Individual file report #} {%- block coverage_by_file -%} -{%- if not files -%} +{%- if not files %} + _This PR does not seem to contain any modification to coverable code._ {%- else -%}
Click to see where and how coverage changed @@ -246,12 +247,7 @@ _This PR does not seem to contain any modification to coverable code._ > [!NOTE] > The report is truncated to {{ max_files }} files out of {{ count_files }}. To see the full report, please visit the workflow summary page. -{% endif -%} - -{%- endif -%} -{%- endblock coverage_by_file -%} - -{%- block footer -%} +{% block footer -%} This report was generated by [python-coverage-comment-action](https://github.com/py-cov-action/python-coverage-comment-action) @@ -259,6 +255,10 @@ This report was generated by [python-coverage-comment-action](https://github.com {%- endblock footer -%} - + +{% endif -%} + +{%- endif -%} +{%- endblock coverage_by_file %} {{ marker -}}