8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c767699 commit 8ec1ea3Copy full SHA for 8ec1ea3
maint_tools/update_tracking_issue.py
@@ -74,6 +74,15 @@ def create_or_update_issue(body=""):
74
link = f"[{args.ci_name}]({args.link_to_ci_run})"
75
issue = get_issue()
76
77
+ max_body_length = 60_000
78
+ original_body_length = len(body)
79
+ # Avoid "body is too long (maximum is 65536 characters)" error from github REST API
80
+ if original_body_length > max_body_length:
81
+ body = (
82
+ f"{body[:max_body_length]}\n...\n"
83
+ f"Body was too long ({original_body_length} characters) and was shortened"
84
+ )
85
+
86
if issue is None:
87
# Create new issue
88
header = f"**CI failed on {link}**"
0 commit comments