Slack uses markdown, not html

This commit is contained in:
Marcus Ramberg 2014-04-06 22:04:13 +02:00
parent d7338cfdb2
commit 45324bc65a

View file

@ -10,8 +10,8 @@ import (
const ( const (
slackEndpoint = "https://%s.slack.com/services/hooks/incoming-webhook?token=%s" slackEndpoint = "https://%s.slack.com/services/hooks/incoming-webhook?token=%s"
slackStartedMessage = "Building %s, commit %s, author %s" slackStartedMessage = "Building %s, commit %s, author %s"
slackSuccessMessage = "<b>Success</b> %s, commit %s, author %s" slackSuccessMessage = "*Success* %s, commit %s, author %s"
slackFailureMessage = "<b>Failed</b> %s, commit %s, author %s" slackFailureMessage = "*Failed* %s, commit %s, author %s"
) )
type Slack struct { type Slack struct {
@ -73,4 +73,3 @@ func (s *Slack) send(msg string) error {
return nil return nil
} }