From 32e2ab18d0c972117adc39e78c537f07db6fa35c Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 31 Oct 2019 17:19:52 +0100 Subject: [PATCH 01/12] Added Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..34ecaaf --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'go build' + } + } + } +} \ No newline at end of file From af70db80618b8f91d9c9250f513c0be65e58a9bf Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Jan 2020 18:53:26 +0100 Subject: [PATCH 02/12] Update README --- README.md | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ae2e11d..a865e96 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,32 @@ -# Musala Mail +# Musala Push -Every morning, get the content of your favorite kanban board by email + + +[![GitHub license](https://img.shields.io/github/license/glenux/namarara.svg)](https://github.com/glenux/namarara/blob/master/LICENSE) +[![Donate on patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://patreon.com/glenux) -Compatibility: +Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. + +Task sources: * :heavy_check_mark: __Trello__ * :x: Libreboard (not yet) * :x: Github Projects (not yet) +Delivery via: + +* :heavy_check_mark: __E-mail__ +* :x: Whatsapp +* :x: SMS + + ## Installation ### With go Make sure you have Go installed, then type: - $ go install github.com/glenux/musala-mail/... + $ go install github.com/glenux/musala-push/... It will install Musala Mail binary in `$GOPATH/bin` @@ -22,7 +34,7 @@ It will install Musala Mail binary in `$GOPATH/bin` Make sure you have Docker installed, then type: - $ docker build -t musala-mail -f docker/Dockerfile . + $ docker build -t musala-push -f docker/Dockerfile . ## Usage @@ -62,11 +74,11 @@ SMTP_SECURITY_TYPE: tls Then run the program: - $ $GOPATH/bin/musala-mail + $ $GOPATH/bin/musala-push ### Using with docker - $ docker build -f docker/Dockerfile -t musala-mail . + $ docker build -f docker/Dockerfile -t musala-push . $ docker run \ -e EMAIL_FROM= -e EMAIL_TO= @@ -74,12 +86,12 @@ Then run the program: -e EMAIL_FROM= -e EMAIL_TO= -e EMAIL_SUBJECT= - -v /var/lib/musala-mail/musala-mail.cron:/app/musala-mail.cron \ - -it musala-mail:latest + -v /var/lib/musala-push/musala-push.cron:/app/musala-push.cron \ + -it musala-push:latest ## Contributing -1. Fork it ( http://github.com/glenux/musala-mail/fork ) +1. Fork it ( http://github.com/glenux/musala-push/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) From 74d4edc7401fb5be5a3fa7ba0a310785fb889ab7 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Jan 2020 18:59:16 +0100 Subject: [PATCH 03/12] Update badges in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a865e96..41c002b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Musala Push - - -[![GitHub license](https://img.shields.io/github/license/glenux/namarara.svg)](https://github.com/glenux/namarara/blob/master/LICENSE) + + +[![GitHub license](https://img.shields.io/github/license/glenux/musala-push.svg)](https://github.com/glenux/musala-push/blob/master/LICENSE) [![Donate on patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://patreon.com/glenux) Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. @@ -109,5 +109,5 @@ Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux) ## License -Musala Mail is Copyright © 2018-2019 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE file. +Musala Push is Copyright © 2018-2019 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE file. From 8ac4ce059db6b85c8b2326d3b05fc7a7d7f70c99 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Jan 2020 19:00:47 +0100 Subject: [PATCH 04/12] Update reference to license file in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41c002b..631c785 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![GitHub license](https://img.shields.io/github/license/glenux/musala-push.svg)](https://github.com/glenux/musala-push/blob/master/LICENSE) +[![GitHub license](https://img.shields.io/github/license/glenux/musala-push.svg)](https://github.com/glenux/musala-push/blob/master/LICENSE.txt) [![Donate on patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://patreon.com/glenux) Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. From 6af672654f107d370ba1b34220cbf80da697dfc7 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Jan 2020 23:50:35 +0100 Subject: [PATCH 05/12] Update README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 631c785..5848a48 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Make sure you have Go installed, then type: It will install Musala Mail binary in `$GOPATH/bin` + ### With docker Make sure you have Docker installed, then type: @@ -45,6 +46,7 @@ Make sure you have Docker installed, then type: 3. Enable developper account on 4. Get an developer API KEY + ### Getting a Trello TOKEN Open the following URL in your web browser and authenticate yourself. That will @@ -52,6 +54,7 @@ give you the TRELLO_TOKEN that will be needed in the next step. + ### Using the binary Prepare your environment with the following variables @@ -109,5 +112,5 @@ Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux) ## License -Musala Push is Copyright © 2018-2019 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE file. +Musala Push is Copyright © 2018-2019 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE.txt file. From f2799358e86fe1cda5085ccfe29488eb705461c6 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 25 Jan 2020 23:53:59 +0100 Subject: [PATCH 06/12] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..14bd4f2 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go +on: [push] +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Build + run: go build -v . From 77a18622373713861b75cc5cb9c14beeaf0dbf26 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 17 May 2020 23:47:43 +0200 Subject: [PATCH 07/12] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5848a48..8944f44 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Musala Push +# Musala @@ -7,6 +7,10 @@ Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. +Note: _musala_ means _work_ [in Lingala](https://dic.lingala.be/fr/mosala) + +## Roadmap + Task sources: * :heavy_check_mark: __Trello__ From f4955c84ae55ecfd1bbb5a8a9f539fed08faa982 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 17 May 2020 23:48:24 +0200 Subject: [PATCH 08/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8944f44..381d008 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. -Note: _musala_ means _work_ [in Lingala](https://dic.lingala.be/fr/mosala) +Note: _musala_ means _work, occupation_ [in Lingala](https://dic.lingala.be/fr/mosala) ## Roadmap From 1d1f91902b22f1e067b39f98b5b069ca38e85478 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 17 May 2020 23:52:09 +0200 Subject: [PATCH 09/12] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 381d008..1be0a3c 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,8 @@ Then run the program: ## Credits -Author & Maintainer: [Glenn Y. ROLLAND](https://github.com/glenux) - -Contributors: none yet ;) +* [Glenn Y. ROLLAND](https://github.com/glenux) - author & maintainer: +* You? Fork the project and become a contributor! Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux) From b438ee5097a883c71d305397264529d2d721975a Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 18 May 2020 00:43:03 +0200 Subject: [PATCH 10/12] Add logo --- doc/logo-title-paths.svg | 250 +++++++++++++++++++++++++++++++++++++++ doc/logo-title.svg | 232 ++++++++++++++++++++++++++++++++++++ doc/logo.svg | 232 ++++++++++++++++++++++++++++++++++++ 3 files changed, 714 insertions(+) create mode 100644 doc/logo-title-paths.svg create mode 100644 doc/logo-title.svg create mode 100644 doc/logo.svg diff --git a/doc/logo-title-paths.svg b/doc/logo-title-paths.svg new file mode 100644 index 0000000..c336aa9 --- /dev/null +++ b/doc/logo-title-paths.svg @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/logo-title.svg b/doc/logo-title.svg new file mode 100644 index 0000000..66cfb29 --- /dev/null +++ b/doc/logo-title.svg @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Musala + diff --git a/doc/logo.svg b/doc/logo.svg new file mode 100644 index 0000000..d060a6a --- /dev/null +++ b/doc/logo.svg @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Musala + From e7039d7bd15bdbe239afa86cf832fbd28740352a Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 18 May 2020 00:45:20 +0200 Subject: [PATCH 11/12] Show logo in README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1be0a3c..ef48972 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Musala +# Musala + From daf62f059317de2d86ca6c9912844ad57071639f Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 5 Dec 2020 18:24:53 +0100 Subject: [PATCH 12/12] Typo fix --- cmd/musala-mail/config.go | 1 + cmd/musala-mail/main.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/musala-mail/config.go b/cmd/musala-mail/config.go index 121f884..94eece3 100644 --- a/cmd/musala-mail/config.go +++ b/cmd/musala-mail/config.go @@ -19,6 +19,7 @@ var ( ALLOWED_SECURITY_TYPES = []string{"none", "tls", "starttls"} ) +// Config type Config struct { EmailFrom string `mapstructure:"email-from"` EmailTo []string `mapstructure:"email-to"` diff --git a/cmd/musala-mail/main.go b/cmd/musala-mail/main.go index 772bdae..cb78ad7 100644 --- a/cmd/musala-mail/main.go +++ b/cmd/musala-mail/main.go @@ -42,7 +42,7 @@ func main() { fmt.Printf("d: exporting content of %s\n", trelloBoard.Name) trelloMarkdown := trelloBoard.ExportToMarkdown() - trelloHtml := trelloBoard.ExportToHtml() + trelloHTML := trelloBoard.ExportToHtml() config.EmailSubject = fmt.Sprintf("Daily mail for %s", trelloBoard.Name) // Create email enveloppe @@ -54,7 +54,7 @@ func main() { email.SetHeader("From", config.EmailFrom) email.SetHeader("Subject", config.EmailSubject) email.SetBody("text/plain", trelloMarkdown) - email.AddAlternative("text/html", trelloHtml) + email.AddAlternative("text/html", trelloHTML) // Connect and send email var transport *mail.Dialer