Skip to content

Commit

Permalink
Limit the length of the check output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 6, 2024
1 parent 0c764d1 commit 60efb12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github_app_geo_project/scripts/process_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ async def _process_job(
if result is not None and result.output:
check_output.update(result.output)
assert check_run is not None
if len(check_output["summary"]) > 65535:
check_output["summary"] = check_output["summary"][:65532] + "..."
if len(check_output["text"]) > 65535:
check_output["text"] = check_output["text"][:65532] + "..."
try:
check_run.edit(
status="completed",
Expand Down

0 comments on commit 60efb12

Please sign in to comment.