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

Commit a178f59

Browse files
committed
get the correct field to select the color
1 parent 05b1e4e commit a178f59

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.5",
5+
"version": "0.0.6",
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.5",
8+
Version: "0.0.6",
99
}

server/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (p *Plugin) handleWebhook(body io.Reader, service, channelID, userID string
3636
msg := fmt.Sprintf("Old Status: %s\nNew Status: %s", t.ComponentUpdate.OldStatus, t.ComponentUpdate.NewStatus)
3737
fields = addFields(fields, "", msg, true)
3838
}
39-
color = setColor(t.Page.StatusIndicator)
39+
color = setColor(t.Component.Status)
4040
}
4141

4242
if t.Incident != nil {

0 commit comments

Comments
 (0)