Browse Source

#2045 move fallback to empty string

for-closed-social
Unknwon 9 years ago
parent
commit
05ba8622f0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      models/webhook_slack.go

+ 3
- 2
models/webhook_slack.go View File

@ -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{

Loading…
Cancel
Save