Merge pull request #371 from moorereason/feature/internal-hook

Make hook package internal
This commit is contained in:
Adnan Hajdarević 2019-12-23 09:34:48 +01:00 committed by GitHub
commit 93ce24d3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -373,10 +373,10 @@ var hooksLoadFromFileTests = []struct {
asTemplate bool asTemplate bool
ok bool ok bool
}{ }{
{"../hooks.json.example", false, true}, {"../../hooks.json.example", false, true},
{"../hooks.yaml.example", false, true}, {"../../hooks.yaml.example", false, true},
{"../hooks.json.tmpl.example", true, true}, {"../../hooks.json.tmpl.example", true, true},
{"../hooks.yaml.tmpl.example", true, true}, {"../../hooks.yaml.tmpl.example", true, true},
{"", false, true}, {"", false, true},
// failures // failures
{"missing.json", false, false}, {"missing.json", false, false},

View file

@ -15,7 +15,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/adnanh/webhook/hook" "github.com/adnanh/webhook/internal/hook"
"github.com/codegangsta/negroni" "github.com/codegangsta/negroni"
"github.com/gofrs/uuid" "github.com/gofrs/uuid"
"github.com/gorilla/mux" "github.com/gorilla/mux"

View file

@ -18,7 +18,7 @@ import (
"text/template" "text/template"
"time" "time"
"github.com/adnanh/webhook/hook" "github.com/adnanh/webhook/internal/hook"
) )
func TestStaticParams(t *testing.T) { func TestStaticParams(t *testing.T) {