File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def read_result_file() -> str | None:
70
70
result_text = re .sub (
71
71
r"\x1B\[[0-9;]*[a-zA-Z]" , "" , result_file .read ()
72
72
) # Remove ANSI colors
73
- return result_text
73
+ return result_text . rstrip ()
74
74
return None
75
75
76
76
@@ -84,7 +84,7 @@ def add_job_summary() -> int:
84
84
summary_content = (
85
85
SUCCESS_TITLE
86
86
if result_text is None
87
- else f"{ FAILURE_TITLE } ```\n { result_text } \n ```"
87
+ else f"{ FAILURE_TITLE } ```\n { result_text } ```"
88
88
)
89
89
90
90
with open (GITHUB_STEP_SUMMARY , "a" ) as summary_file :
@@ -113,7 +113,7 @@ def add_pr_comments() -> int:
113
113
pr_comments = (
114
114
SUCCESS_TITLE
115
115
if result_text is None
116
- else f"{ FAILURE_TITLE } ```\n { result_text } \n ```"
116
+ else f"{ FAILURE_TITLE } ```\n { result_text } ```"
117
117
)
118
118
119
119
# Fetch all existing comments on the PR
You can’t perform that action at this time.
0 commit comments