Skip to content

Commit c2f99d4

Browse files
committed
Remove footer and change default notification colour in notification script.
1 parent 2ea8ee8 commit c2f99d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/slack_notification_action.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ func main() {
192192
case "failure":
193193
color = "danger"
194194
default:
195-
color = envOr(EnvSlackColor, "good")
195+
// yellow for default, unless environment variable present
196+
color = envOr(EnvSlackColor, "#FFFF00")
196197
}
197198

198199
msg := Webhook{
@@ -208,7 +209,7 @@ func main() {
208209
AuthorName: envOr(EnvGithubActor, ""),
209210
AuthorLink: os.Getenv("GITHUB_SERVER_URL") + "/" + os.Getenv(EnvGithubActor),
210211
AuthorIcon: os.Getenv("GITHUB_SERVER_URL") + "/" + os.Getenv(EnvGithubActor) + ".png?size=32",
211-
Footer: envOr(EnvSlackFooter, "<https://github.com/rtCamp/github-actions-library|Powered By rtCamp's GitHub Actions Library>"),
212+
Footer: envOr(EnvSlackFooter, ""),
212213
Fields: fields,
213214
},
214215
},

0 commit comments

Comments
 (0)