File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ func (bc barkConvertor) Push(p *api.PushPayload) (BarkPayload, error) {
121121 for i , commit := range p .Commits {
122122 body .WriteString (fmt .Sprintf ("%s: %s" , commit .ID [:7 ], strings .TrimRight (commit .Message , "\r \n " )))
123123 if commit .Author != nil {
124- body .WriteString (fmt . Sprintf ( " - %s" , commit .Author .Name ) )
124+ body .WriteString (" - " + commit .Author .Name )
125125 }
126126 if i < len (p .Commits )- 1 {
127127 body .WriteString ("\n " )
@@ -230,10 +230,10 @@ func (bc barkConvertor) Repository(p *api.RepositoryPayload) (BarkPayload, error
230230 switch p .Action {
231231 case api .HookRepoCreated :
232232 title = fmt .Sprintf ("[%s] Repository created" , p .Repository .FullName )
233- body = fmt . Sprintf ( "%s created repository", p . Sender . UserName )
233+ body = p . Sender . UserName + " created repository"
234234 case api .HookRepoDeleted :
235235 title = fmt .Sprintf ("[%s] Repository deleted" , p .Repository .FullName )
236- body = fmt . Sprintf ( "%s deleted repository", p . Sender . UserName )
236+ body = p . Sender . UserName + " deleted repository"
237237 default :
238238 return BarkPayload {}, nil
239239 }
You can’t perform that action at this time.
0 commit comments