From 05ba8622f06fca86634f89cea5fccdce0b0ffa94 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 4 Dec 2015 18:31:45 -0500 Subject: [PATCH] #2045 move fallback to empty string --- models/webhook_slack.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/webhook_slack.go b/models/webhook_slack.go index 5fd847b8..12f21af4 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{