Skip to content

Commit

Permalink
limit comment length in deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
argl committed Dec 12, 2024
1 parent 1e9134b commit 75fe0ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deployer/src/deployer/analyze_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

from .utils import log

MAX_COMMENT_BODY_LENGTH = 65500

hidden_comment_regex = re.compile(
r"<!-- build_hash: ([a-f0-9]+) date: ([\d:\.\- ]+) -->"
)
Expand Down Expand Up @@ -80,7 +82,7 @@ def analyze_pr(build_directory: Path, config):
break

else:
github_issue.create_comment(combined_comment)
github_issue.create_comment(combined_comment[:MAX_COMMENT_BODY_LENGTH])

return combined_comment

Expand Down

0 comments on commit 75fe0ee

Please sign in to comment.