Slack uses markdown, not html
This commit is contained in:
parent
d7338cfdb2
commit
45324bc65a
1 changed files with 3 additions and 4 deletions
|
@ -8,10 +8,10 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue