diff --git a/README.md b/README.md index 8bf7278..3e2408d 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,16 @@ Drone plugin to send build status notifications via Email. For the usage information and a listing of the available options please take a look at [the docs](DOCS.md). +Screenshots from Spark for Android: + +Screenshot of light mail on mobile +Screenshot of dark mail on moblie + +Screenshots from Thunderbird for Linux: + +Screenshot of light mail in thunderbird +Screenshot of dark mail in thunderbird + ## Binary Build the binary with the following command: diff --git a/defaults.go b/defaults.go index 3643145..808fe8b 100644 --- a/defaults.go +++ b/defaults.go @@ -13,258 +13,240 @@ const ( // 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 }}) + {{#success build.status}}Successful build on {{ commit.branch }}{{else}}Failed build on {{ commit.branch }}{{/success}} for {{ repo.owner }}/{{ repo.name }} ` // 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 }} - -
- - - - - - - - - + + + +
+

+ This is the report of your most recent drone pipeline build. + It finished {{ datetime build.finished "Mon Jan 2 15:04:05 MST 2006" "Local" }}. +

+ +

+ {{#success build.status}} +

+ Successful build #{{ build.number }} +
+ {{else}} +
+ Failed build #{{ build.number }} +
+ {{/success}} +

+ +

+

+
+ The build was based on the following commit: +
+
+
- Repo: - - {{ repo.owner }}/{{ repo.name }} -
- Author: - - {{ commit.author.name }} ({{ commit.author.email }}) -
+ + + + + + +
{{ truncate commit.sha 8 }}: {{commit.message}}{{commit.branch}}
+ + + + + + + +
Avatar of {{commit.author.name}} +
+ {{commit.author.name}}
+ {{commit.author.email}} +
+
+ + +

+ +
+
+ Here are some useful links: +
+
+ - - + + - - + + - - + + -
- Branch: - - {{ commit.branch }} - + See the build on drone: + + Build #{{build.number}}, {{build.status}} +
- Commit: - - {{ truncate commit.sha 8 }} - + Link to the commit: + + {{ truncate commit.sha 8 }}: {{commit.message}} +
- Started at: - - {{ datetime build.created "Mon Jan 2 15:04:05 MST 2006" "Local" }} - + Link to the repository: + + {{repo.fullName}} +
-
- - + + -
- {{ commit.message }} - + Started at: + + {{ datetime build.created "Mon Jan 2 15:04:05 MST 2006" "Local" }} +
-
-
-
- + + + + + + -` +` \ No newline at end of file diff --git a/img/screenshot_dark.jpg b/img/screenshot_dark.jpg new file mode 100644 index 0000000..475cca6 Binary files /dev/null and b/img/screenshot_dark.jpg differ diff --git a/img/screenshot_light.jpg b/img/screenshot_light.jpg new file mode 100644 index 0000000..1474e2b Binary files /dev/null and b/img/screenshot_light.jpg differ diff --git a/img/screenshot_thunderbird_dark.png b/img/screenshot_thunderbird_dark.png new file mode 100644 index 0000000..28af8da Binary files /dev/null and b/img/screenshot_thunderbird_dark.png differ diff --git a/img/screenshot_thunderbird_light.png b/img/screenshot_thunderbird_light.png new file mode 100644 index 0000000..6f11ef3 Binary files /dev/null and b/img/screenshot_thunderbird_light.png differ