Skip to content

Commit 24f3a9a

Browse files
committed
Remove emoji from PR check report, use plain text
1 parent 665debe commit 24f3a9a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ci/pr-check/src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ impl CheckResult {
6767
matches!(self, Self::Fail(_))
6868
}
6969

70-
fn emoji(&self) -> &'static str {
70+
fn symbol(&self) -> &'static str {
7171
match self {
72-
Self::Pass(_) => "",
73-
Self::Fail(_) => "",
74-
Self::Skip(_) => "",
72+
Self::Pass(_) => "pass",
73+
Self::Fail(_) => "fail",
74+
Self::Skip(_) => "skip",
7575
}
7676
}
7777

@@ -372,8 +372,8 @@ fn render_comment(reports: &[ToolReport]) -> String {
372372
}
373373

374374
for report in reports {
375-
let status_icon = if report.any_fail() { "" } else { "" };
376-
out.push_str(&format!("### {} `{}`\n\n", status_icon, report.name));
375+
let status = if report.any_fail() { "FAIL" } else { "PASS" };
376+
out.push_str(&format!("### [{}] `{}`\n\n", status, report.name));
377377

378378
if let Some(src) = &report.source {
379379
out.push_str(&format!("Source: {src}\n\n"));
@@ -394,7 +394,7 @@ fn render_comment(reports: &[ToolReport]) -> String {
394394
out.push_str(&format!(
395395
"| {} | {} {} |\n",
396396
label,
397-
check.emoji(),
397+
check.symbol(),
398398
check.message()
399399
));
400400
}

0 commit comments

Comments
 (0)