Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 385036d

Browse files
committed
update color codes
1 parent a178f59 commit 385036d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "statuspage",
33
"name": "Statuspage",
44
"description": "This plugin send Statuspage notifications to a Mattermost channel.",
5-
"version": "0.0.6",
5+
"version": "0.0.7",
66
"server": {
77
"executables": {
88
"linux-amd64": "server/dist/plugin-linux-amd64",

server/manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ var manifest = struct {
55
Version string
66
}{
77
Id: "statuspage",
8-
Version: "0.0.6",
8+
Version: "0.0.7",
99
}

server/webhook.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,18 @@ func addFields(fields []*model.SlackAttachmentField, title, msg string, short bo
9090

9191
func setColor(impact string) string {
9292
mapImpactColor := map[string]string{
93-
"maintenance": "#FAF605",
94-
"operational": "#00FF00",
95-
"degraded_performance": "#F8740D",
96-
"major_outage": "#C72015",
97-
"major": "#800080",
98-
"partial_outage": "#F8740D",
93+
"maintenance": "#ADD8E6",
94+
"operational": "#008000",
95+
"degraded_performance": "#FFFF66",
96+
"partial_outage": "#FFA500",
97+
"major_outage": "#FF0000",
98+
"major": "#FF4500",
99+
"minor": "#FF6347",
99100
}
100101

101102
if val, ok := mapImpactColor[impact]; ok {
102103
return val
103104
}
104105

105-
return "#0000FF"
106+
return "#F0F8FF"
106107
}

0 commit comments

Comments
 (0)