We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e40223 commit 6cd1f34Copy full SHA for 6cd1f34
src/main.ts
@@ -53,8 +53,8 @@ async function run() {
53
const repository_url = ctx.payload.repository?.html_url
54
const commit_author = ctx.actor
55
56
- var themeColor = lastStep?.conclusion === "success" ? "90C978": "C23B23"
57
- const conclusion = lastStep?.conclusion === "success" ? "SUCCEEDED" : "FAILED"
+ var themeColor = lastStep?.conclusion === "success" ? "90C978": lastStep?.conclusion === "cancelled" ? "FFF175" : "C23B23"
+ const conclusion = lastStep?.conclusion === "success" ? "SUCCEEDED" : lastStep?.conclusion === "cancelled" ? "CANCELLED" : "FAILED"
58
59
const webhookBody = {
60
"@type": "MessageCard",
0 commit comments