소스 검색

webhook: minor text change on Discord

Unknwon 8 년 전
부모
커밋
41a2632ae7
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      .gitignore
  2. 1 1
      models/webhook_discord.go

+ 2 - 2
.gitignore

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

+ 1 - 1
models/webhook_discord.go

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