Browse Source

webhook: minor text change on Discord

pull/4155/head
Unknwon 8 years ago
parent
commit
41a2632ae7
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 4
      .gitignore
  2. 2
      models/webhook_discord.go

4
.gitignore vendored

@ -14,6 +14,6 @@ public/img/avatar/
profile/ profile/
*.pem *.pem
output* output*
gogs.sublime-project *.sublime-project
gogs.sublime-workspace *.sublime-workspace
/release /release

2
models/webhook_discord.go

@ -105,7 +105,7 @@ func getDiscordPushPayload(p *api.PushPayload, slack *SlackMeta) (*DiscordPayloa
repoLink := DiscordLinkFormatter(p.Repo.HTMLURL, p.Repo.Name) repoLink := DiscordLinkFormatter(p.Repo.HTMLURL, p.Repo.Name)
branchLink := DiscordLinkFormatter(p.Repo.HTMLURL+"/src/"+branchName, branchName) branchLink := DiscordLinkFormatter(p.Repo.HTMLURL+"/src/"+branchName, branchName)
content := fmt.Sprintf("Pushed %s to %s/%s:\n", commitString, repoLink, branchLink) content := fmt.Sprintf("Pushed %s to %s/%s\n", commitString, repoLink, branchLink)
// for each commit, generate attachment text // for each commit, generate attachment text
for i, commit := range p.Commits { for i, commit := range p.Commits {

Loading…
Cancel
Save