Skip to content

Commit

Permalink
webhook: minor text change on Discord
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Feb 19, 2017
1 parent f3a228e commit 41a2632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public/img/avatar/
profile/
*.pem
output*
gogs.sublime-project
gogs.sublime-workspace
*.sublime-project
*.sublime-workspace
/release
2 changes: 1 addition & 1 deletion models/webhook_discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func getDiscordPushPayload(p *api.PushPayload, slack *SlackMeta) (*DiscordPayloa

repoLink := DiscordLinkFormatter(p.Repo.HTMLURL, p.Repo.Name)
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 i, commit := range p.Commits {
Expand Down

0 comments on commit 41a2632

Please sign in to comment.