Skip to content

Commit 6250765

Browse files
committed
chore: update advice cell content
1 parent 5d306d9 commit 6250765

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

dist/index.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

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

src/comment.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ export const upsertComment = async (res: CheckReleaseResponse) => {
6868
).length
6969
core.debug(`result: ${JSON.stringify(result)}`)
7070
core.debug(`errorAdvicesCount: ${errorAdvicesCount}`)
71-
let advicesCell = '-'
71+
const countSlice: string[] = []
7272
if (errorAdvicesCount > 0) {
73-
advicesCell += `🔴 ${errorAdvicesCount} Error(s)\n`
73+
countSlice.push(`${errorAdvicesCount} Error(s)`)
7474
}
7575
if (warningAdvicesCount > 0) {
76-
advicesCell += `🟡 ${warningAdvicesCount} Warning(s)\n`
76+
countSlice.push(`${warningAdvicesCount} Warning(s)`)
77+
}
78+
let advicesCell = '-'
79+
if (countSlice.length > 0) {
80+
advicesCell = countSlice.join(', ')
7781
}
7882
message += `<tr>
7983
<td>${result.file}</td>

0 commit comments

Comments
 (0)