Skip to content

Commit

Permalink
Merge pull request #444 from tgehrs/442-truncated-message
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim authored Jul 29, 2024
2 parents 5cb6ece + 9dc27d8 commit 623c592
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion coverage_comment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,25 @@ def process_pr(
marker=marker,
subproject_id=config.SUBPROJECT_ID,
)
# Same as above except `max_files` is None
summary_comment = template.get_comment_markdown(
coverage=coverage,
diff_coverage=diff_coverage,
previous_coverage=previous_coverage,
previous_coverage_rate=previous_coverage_rate,
files=files_info,
count_files=count_files,
max_files=None,
minimum_green=config.MINIMUM_GREEN,
minimum_orange=config.MINIMUM_ORANGE,
repo_name=config.GITHUB_REPOSITORY,
pr_number=config.GITHUB_PR_NUMBER,
base_template=template.read_template_file("comment.md.j2"),
custom_template=config.COMMENT_TEMPLATE,
pr_targets_default_branch=pr_targets_default_branch,
marker=marker,
subproject_id=config.SUBPROJECT_ID,
)
except template.MissingMarker:
log.error(
"Marker not found. This error can happen if you defined a custom comment "
Expand All @@ -200,7 +219,7 @@ def process_pr(
return 1

github.add_job_summary(
content=comment, github_step_summary=config.GITHUB_STEP_SUMMARY
content=summary_comment, github_step_summary=config.GITHUB_STEP_SUMMARY
)
pr_number: int | None = config.GITHUB_PR_NUMBER
if pr_number is None:
Expand Down

0 comments on commit 623c592

Please sign in to comment.