Skip to content

Commit

Permalink
Make hook package internal
Browse files Browse the repository at this point in the history
The hook package API is not meant for public consumption.
  • Loading branch information
moorereason committed Dec 21, 2019
1 parent c872aae commit 40d9dcd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions hook/hook_test.go → internal/hook/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ var hooksLoadFromFileTests = []struct {
asTemplate bool
ok bool
}{
{"../hooks.json.example", false, true},
{"../hooks.yaml.example", false, true},
{"../hooks.json.tmpl.example", true, true},
{"../hooks.yaml.tmpl.example", true, true},
{"../../hooks.json.example", false, true},
{"../../hooks.yaml.example", false, true},
{"../../hooks.json.tmpl.example", true, true},
{"../../hooks.yaml.tmpl.example", true, true},
{"", false, true},
// failures
{"missing.json", false, false},
Expand Down
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
"time"

"github.com/adnanh/webhook/hook"
"github.com/adnanh/webhook/internal/hook"
"github.com/codegangsta/negroni"
"github.com/gofrs/uuid"
"github.com/gorilla/mux"
Expand Down
2 changes: 1 addition & 1 deletion webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"text/template"
"time"

"github.com/adnanh/webhook/hook"
"github.com/adnanh/webhook/internal/hook"
)

func TestStaticParams(t *testing.T) {
Expand Down

0 comments on commit 40d9dcd

Please sign in to comment.