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",
@ -35,17 +34,19 @@ var Gotify = &gotify{&notifications.Notification{
FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`, FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`,
DataType: "json", DataType: "json",
Form: []notifications.NotificationForm{{ Form: []notifications.NotificationForm{{
Type: "text", Type: "text",
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",
Required: true, Placeholder: "https://gotify.domain.com",
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",
Required: true, Placeholder: "TB5gatYYyR.FCD2",
Required: true,
}}}, }}},
} }