package email import ( "html/template" ) // raw email message template var rawMessage = `From: %s To: %s Subject: %s MIME-version: 1.0 Content-Type: text/html; charset="UTF-8" %s` // default success email template var successTemplate = template.Must(template.New("_").Parse(`
Build was Successful
Repository : {{.Repo.Owner}}/{{.Repo.Name}}
Commit : {{.Commit.ShaShort}}
Author : {{.Commit.Author}}
Branch : {{.Commit.Branch}}
Message:
{{ .Commit.Message }}
`)) // default failure email template var failureTemplate = template.Must(template.New("_").Parse(`Build Failed
Repository : {{.Repo.Owner}}/{{.Repo.Name}}
Commit : {{.Commit.ShaShort}}
Author : {{.Commit.Author}}
Branch : {{.Commit.Branch}}
Message:
{{ .Commit.Message }}
`))