Skip to content

Commit 684a9a1

Browse files
committed
🚧 Tweak more stuff
1 parent 5be476d commit 684a9a1

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

action/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

action/run.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,18 @@ export const run = async (): Promise<void> => {
6060

6161
const coverage = coverageResult.percentage.toFixed(2);
6262

63+
const summary = [
64+
"The following is the Typescript Coverage Report for this Pull Request",
65+
"### Indicators",
66+
`🟥 -> Indicates that the file has failed the type threshold (${threshold}%)`,
67+
`🟩 -> Indicates that the file has passed the type threshold (${threshold}%)`
68+
];
69+
6370
updateCheckRun(octokit, checkId, {
6471
conclusion: "neutral",
6572
output: {
6673
title: `${coverage}% Coverage`,
67-
summary: `The following is the Typescript Coverage Report for this Pull Request
68-
**Indicators**
69-
🟥 -> Indicates that the file has failed the type threshold (\`${threshold}%\`)
70-
🟩 -> Indicates that the file has passed the type threshold (\`${threshold}%\`)
71-
`,
74+
summary: summary.join('\n'),
7275
text: markdownReport
7376
}
7477
});

0 commit comments

Comments
 (0)