1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00

#2045 move fallback to empty string

This commit is contained in:
Unknwon 2015-12-04 18:31:45 -05:00
parent 4795fa01d8
commit 05ba8622f0

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{