Skip to content

Commit 271aa31

Browse files
committed
feat: update title
1 parent abbd406 commit 271aa31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88

99
# 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 ❌"
1212

1313
# Environment variables
1414
MESSAGE = os.getenv("MESSAGE", "false")
@@ -84,7 +84,7 @@ def add_job_summary() -> int:
8484
summary_content = (
8585
SUCCESS_TITLE
8686
if result_text is None
87-
else f"{FAILURE_TITLE}```\n{result_text}\n```"
87+
else f"{FAILURE_TITLE}\n```\n{result_text}\n```"
8888
)
8989

9090
with open(GITHUB_STEP_SUMMARY, "a") as summary_file:
@@ -113,7 +113,7 @@ def add_pr_comments() -> int:
113113
pr_comments = (
114114
SUCCESS_TITLE
115115
if result_text is None
116-
else f"{FAILURE_TITLE}```\n{result_text}\n```"
116+
else f"{FAILURE_TITLE}\n```\n{result_text}\n```"
117117
)
118118

119119
# Fetch all existing comments on the PR

0 commit comments

Comments
 (0)