This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| secret: "password123" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From: {{ .From }} | |
| To: {{ .To }} | |
| Subject: {{ .Subject }} | |
| Hello world! | |
| I'm happy that you joined us on {{ .Date }}. | |
| -- | |
| Author |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/geekmail/geekmail-cli | |
| cd geekmail-cli | |
| make | |
| mkdir ~/bin | |
| cp geekmail ~/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| merge: | |
| whitelist: | |
| # a PR must have these labels set | |
| labels: ["automerge"] | |
| blacklist: | |
| # a PR may not have these labels set | |
| labels: ["wip"] | |
| # merge method, see https://help.github.com/en/articles/about-merge-methods-on-github | |
| # one of: merge, squash, rebase | |
| method: squash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git clone https://github.com/geekmail/geekmail-cli | |
| Cloning into 'geekmail-cli'... | |
| $ cd geekmail-cli/ | |
| $ make build | |
| go build -o geekmail . | |
| $ cat <<END > ~/.geekmail.yaml | |
| githubauth: | |
| repository: "github.com/geekmail/geekmail-sample" | |
| config_path: "config.yaml" | |
| repo_secret: "password123" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TEMPLATE=$(cat <<'END_TEMPLATE' | sed ':a;N;$!ba;s/\n/\\n/g' | |
| To: {{ .To }} | |
| Subject: Hello world! | |
| {{ if .Name }}Hey {{ .Name }},{{ else }}Hey there,{{ end }} | |
| I'm happy that you joined us. | |
| -- | |
| Author |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net/http" | |
| geekmail "github.com/geekmail/go-geekmail" | |
| ) |