diff options
author | Unknwon <u@gogs.io> | 2015-12-04 18:31:45 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-04 18:31:45 -0500 |
commit | 05ba8622f06fca86634f89cea5fccdce0b0ffa94 (patch) | |
tree | aae0811cbd495c6f900ed847298122a595cf3106 /models/webhook_slack.go | |
parent | 4795fa01d81f7745eb32917f5e6bfd9665746d56 (diff) | |
download | gitea-05ba8622f06fca86634f89cea5fccdce0b0ffa94.tar.gz gitea-05ba8622f06fca86634f89cea5fccdce0b0ffa94.zip |
#2045 move fallback to empty string
Diffstat (limited to 'models/webhook_slack.go')
-rw-r--r-- | models/webhook_slack.go | 5 |
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{ |