Skip to content

Commit

Permalink
Merge pull request #281 from schubter/feature/hipchat-server
Browse files Browse the repository at this point in the history
added HIPCHAT_SERVER environment variable
  • Loading branch information
rusenask authored Oct 2, 2018
2 parents fbaa04e + 3d98227 commit 974a978
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extension/notification/hipchat/hipchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"os"
"strings"

"net/url"

"github.com/tbruyelle/hipchat-go/hipchat"

"github.com/keel-hq/keel/constants"
Expand Down Expand Up @@ -47,6 +49,11 @@ func (s *sender) Configure(config *notification.Config) (bool, error) {

s.hipchatClient = hipchat.NewClient(token)

if os.Getenv("HIPCHAT_SERVER") != "" {
server, _ := url.Parse(os.Getenv("HIPCHAT_SERVER"))
s.hipchatClient.BaseURL = server
}

log.WithFields(log.Fields{
"name": "hipchat",
"channels": s.channels,
Expand Down

0 comments on commit 974a978

Please sign in to comment.