File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
9
9
# Constants for message titles
10
- SUCCESS_TITLE = "### Commit-Check ✔️\n "
11
- FAILURE_TITLE = "### Commit-Check ❌\n "
10
+ SUCCESS_TITLE = "# Commit-Check ✔️"
11
+ FAILURE_TITLE = "# Commit-Check ❌"
12
12
13
13
# Environment variables
14
14
MESSAGE = os .getenv ("MESSAGE" , "false" )
@@ -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 ```\n { result_text } \n ```"
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 ```\n { result_text } \n ```"
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