From 3cd941c1d464d5c9b483a88383bf56bddca0dadd Mon Sep 17 00:00:00 2001 From: Richard Kovacs Date: Wed, 21 Mar 2018 15:33:51 +0100 Subject: [PATCH] REmove HTML message --- action/notification.go | 8 ++++---- hipchat/hipchat.go | 4 ++-- types/action.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/action/notification.go b/action/notification.go index a43358fc..5ce9716a 100644 --- a/action/notification.go +++ b/action/notification.go @@ -41,16 +41,16 @@ type instancesMessage struct { op *types.OpType } -func (m *instancesMessage) HTMLMessage() string { +func (m *instancesMessage) Message() string { var buffer bytes.Buffer - buffer.WriteString(fmt.Sprintf("Operation: %s") return buffer.String() } diff --git a/hipchat/hipchat.go b/hipchat/hipchat.go index 7007d30c..004c1c5b 100644 --- a/hipchat/hipchat.go +++ b/hipchat/hipchat.go @@ -42,9 +42,9 @@ func (h *Hipchat) Send(message types.Message) error { log.Infof("[HIPCHAT] %s", string(out)) } else { _, err := client.Room.Notification(room, &hipchat.NotificationRequest{ - Message: message.HTMLMessage(), + Message: message.Message(), Color: "green", - MessageFormat: "html", + MessageFormat: "text", }) if err != nil { return err diff --git a/types/action.go b/types/action.go index cf9afe33..da3be40c 100644 --- a/types/action.go +++ b/types/action.go @@ -17,7 +17,7 @@ type Action interface { } type Message interface { - HTMLMessage() string + Message() string } type Dispatcher interface {