import with github

This commit is contained in:
Martin Geno 2017-06-10 16:31:56 +02:00
parent 80af647be1
commit c7f7dc4340
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
4 changed files with 10 additions and 10 deletions

View File

@ -8,8 +8,8 @@ import (
"github.com/genofire/golang-lib/log"
xmpp "github.com/mattn/go-xmpp"
"dev.sum7.eu/genofire/hook2xmpp/config"
ownXMPP "dev.sum7.eu/genofire/hook2xmpp/xmpp"
"github.com/genofire/hook2xmpp/config"
ownXMPP "github.com/genofire/hook2xmpp/xmpp"
)
type Handler struct {
@ -53,7 +53,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
buildURL := payload["build_url"].(string)
buildTime := payload["build_time_millis"].(float64)
subject := payload["subject"].(string)
msg := fmt.Sprintf("[%s] %s (%0.fms) - #%0.f: %s \n%s", vcsURL, status, buildTime, buildNum, subject, buildURL)
msg := fmt.Sprintf("[%s] %s (%0.fs) - #%0.f: %s \n%s", vcsURL, status, buildTime/1000, buildNum, subject, buildURL)
log.Log.WithField("type", "circleci").Print(msg)
ownXMPP.Notify(h.client, hook, msg)

View File

@ -10,10 +10,10 @@ import (
"github.com/genofire/golang-lib/log"
"github.com/mattn/go-xmpp"
"dev.sum7.eu/genofire/hook2xmpp/circleci"
configuration "dev.sum7.eu/genofire/hook2xmpp/config"
"dev.sum7.eu/genofire/hook2xmpp/git"
ownXMPP "dev.sum7.eu/genofire/hook2xmpp/xmpp"
"github.com/genofire/hook2xmpp/circleci"
configuration "github.com/genofire/hook2xmpp/config"
"github.com/genofire/hook2xmpp/git"
ownXMPP "github.com/genofire/hook2xmpp/xmpp"
)
func main() {

View File

@ -7,8 +7,8 @@ import (
"github.com/genofire/golang-lib/log"
xmpp "github.com/mattn/go-xmpp"
"dev.sum7.eu/genofire/hook2xmpp/config"
ownXMPP "dev.sum7.eu/genofire/hook2xmpp/xmpp"
"github.com/genofire/hook2xmpp/config"
ownXMPP "github.com/genofire/hook2xmpp/xmpp"
)
type Handler struct {

View File

@ -2,7 +2,7 @@ package xmpp
import (
"github.com/genofire/golang-lib/log"
"dev.sum7.eu/genofire/hook2xmpp/config"
"github.com/genofire/hook2xmpp/config"
xmpp "github.com/mattn/go-xmpp"
)