package main const ( // DefaultPort is the default SMTP port to use DefaultPort = 587 // DefaultOnlyRecipients controls wether to exclude the commit author by default DefaultOnlyRecipients = false // DefaultSkipVerify controls wether to skip SSL verification for the SMTP server DefaultSkipVerify = false // DefaultClientHostname is the client hostname used in the HELO command sent to the SMTP server DefaultClientHostname = "localhost" ) // DefaultSubject is the default subject template to use for the email const DefaultSubject = ` [{{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ commit.branch }} - {{ truncate commit.sha 8 }}) ` // DefaultTemplate is the default body template to use for the email const DefaultTemplate = `
{{#success build.status}} {{else}} {{/success}}
Successful build #{{ build.number }} Failed build #{{ build.number }}
Repo: {{ repo.owner }}/{{ repo.name }}
Author: {{ commit.author.name }} ({{ commit.author.email }})
Branch: {{ commit.branch }}
Commit: {{ truncate commit.sha 8 }}
Started at: {{ datetime build.created "Mon Jan 2 15:04:05 MST 2006" "Local" }}

{{ commit.message }}
`