gotify notifier updates

pull/737/head
hunterlong 2020-07-09 18:28:19 -07:00
parent e2b2c732c6
commit 1d3d0ce252
3 changed files with 16 additions and 11 deletions

View File

@ -136,6 +136,8 @@ jobs:
TWILIO_FROM: ${{ secrets.TWILIO_FROM }} TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
TWILIO_TO: ${{ secrets.TWILIO_TO }} TWILIO_TO: ${{ secrets.TWILIO_TO }}
TEST_EMAIL: ${{ secrets.TEST_EMAIL }} TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
- name: Coveralls Testing Coverage - name: Coveralls Testing Coverage
run: | run: |

View File

@ -136,6 +136,8 @@ jobs:
TWILIO_FROM: ${{ secrets.TWILIO_FROM }} TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
TWILIO_TO: ${{ secrets.TWILIO_TO }} TWILIO_TO: ${{ secrets.TWILIO_TO }}
TEST_EMAIL: ${{ secrets.TEST_EMAIL }} TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
- name: Coveralls Testing Coverage - name: Coveralls Testing Coverage
run: | run: |

View File

@ -24,7 +24,6 @@ func (g *gotify) Select() *notifications.Notification {
var Gotify = &gotify{&notifications.Notification{ var Gotify = &gotify{&notifications.Notification{
Method: "gotify", Method: "gotify",
Title: "Gotify", Title: "Gotify",
Host: "https://gotify.myserver.com",
Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.", Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.",
Author: "Hugo van Rijswijk", Author: "Hugo van Rijswijk",
AuthorUrl: "https://github.com/hugo-vrijswijk", AuthorUrl: "https://github.com/hugo-vrijswijk",
@ -39,12 +38,14 @@ var Gotify = &gotify{&notifications.Notification{
Title: "Gotify URL", Title: "Gotify URL",
SmallText: "Gotify server URL, including http(s):// and port if needed", SmallText: "Gotify server URL, including http(s):// and port if needed",
DbField: "Host", DbField: "Host",
Placeholder: "https://gotify.domain.com",
Required: true, Required: true,
}, { }, {
Type: "text", Type: "text",
Title: "App Token", Title: "App Token",
SmallText: "The Application Token generated by Gotify", SmallText: "The Application Token generated by Gotify",
DbField: "api_key", DbField: "api_key",
Placeholder: "TB5gatYYyR.FCD2",
Required: true, Required: true,
}}}, }}},
} }