summaryrefslogtreecommitdiffstats
path: root/models/webhook_slack.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/webhook_slack.go')
-rw-r--r--models/webhook_slack.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/webhook_slack.go b/models/webhook_slack.go
index 5fd847b8c6..12f21af43c 100644
--- a/models/webhook_slack.go
+++ b/models/webhook_slack.go
@@ -113,10 +113,11 @@ func getSlackPushPayload(p *api.PushPayload, slack *SlackMeta) (*SlackPayload, e
}
slackAttachments := []SlackAttachment{{
- Fallback: fmt.Sprintf("%s pushed %s to %s/%s: %s",
- p.Pusher, commitDesc, p.Repo.Name, branchName, p.CompareUrl),
Color: slack.Color,
Text: attachmentText,
+ }, {
+ Fallback: fmt.Sprintf("%s pushed %s to %s/%s: %s",
+ p.Pusher, commitDesc, p.Repo.Name, branchName, p.CompareUrl),
}}
return &SlackPayload{