diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 7c477095..7f4e98be 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -136,6 +136,8 @@ jobs: TWILIO_FROM: ${{ secrets.TWILIO_FROM }} TWILIO_TO: ${{ secrets.TWILIO_TO }} TEST_EMAIL: ${{ secrets.TEST_EMAIL }} + GOTIFY_URL: ${{ secrets.GOTIFY_URL }} + GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }} - name: Coveralls Testing Coverage run: | diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 81375fd1..b4bb2179 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -136,6 +136,8 @@ jobs: TWILIO_FROM: ${{ secrets.TWILIO_FROM }} TWILIO_TO: ${{ secrets.TWILIO_TO }} TEST_EMAIL: ${{ secrets.TEST_EMAIL }} + GOTIFY_URL: ${{ secrets.GOTIFY_URL }} + GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }} - name: Coveralls Testing Coverage run: | diff --git a/notifiers/gotify.go b/notifiers/gotify.go index d49ace5f..1da832e9 100644 --- a/notifiers/gotify.go +++ b/notifiers/gotify.go @@ -24,7 +24,6 @@ func (g *gotify) Select() *notifications.Notification { var Gotify = &gotify{¬ifications.Notification{ Method: "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.", Author: "Hugo van Rijswijk", AuthorUrl: "https://github.com/hugo-vrijswijk", @@ -35,17 +34,19 @@ var Gotify = &gotify{¬ifications.Notification{ FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`, DataType: "json", Form: []notifications.NotificationForm{{ - Type: "text", - Title: "Gotify URL", - SmallText: "Gotify server URL, including http(s):// and port if needed", - DbField: "Host", - Required: true, + Type: "text", + Title: "Gotify URL", + SmallText: "Gotify server URL, including http(s):// and port if needed", + DbField: "Host", + Placeholder: "https://gotify.domain.com", + Required: true, }, { - Type: "text", - Title: "App Token", - SmallText: "The Application Token generated by Gotify", - DbField: "api_key", - Required: true, + Type: "text", + Title: "App Token", + SmallText: "The Application Token generated by Gotify", + DbField: "api_key", + Placeholder: "TB5gatYYyR.FCD2", + Required: true, }}}, }