Skip to content

Commit

Permalink
get the correct field to select the color
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Mar 12, 2019
1 parent 05b1e4e commit a178f59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Expand Up @@ -2,7 +2,7 @@
"id": "statuspage",
"name": "Statuspage",
"description": "This plugin send Statuspage notifications to a Mattermost channel.",
"version": "0.0.5",
"version": "0.0.6",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
Expand Down
2 changes: 1 addition & 1 deletion server/manifest.go
Expand Up @@ -5,5 +5,5 @@ var manifest = struct {
Version string
}{
Id: "statuspage",
Version: "0.0.5",
Version: "0.0.6",
}
2 changes: 1 addition & 1 deletion server/webhook.go
Expand Up @@ -36,7 +36,7 @@ func (p *Plugin) handleWebhook(body io.Reader, service, channelID, userID string
msg := fmt.Sprintf("Old Status: %s\nNew Status: %s", t.ComponentUpdate.OldStatus, t.ComponentUpdate.NewStatus)
fields = addFields(fields, "", msg, true)
}
color = setColor(t.Page.StatusIndicator)
color = setColor(t.Component.Status)
}

if t.Incident != nil {
Expand Down

0 comments on commit a178f59

Please sign in to comment.