Skip to content

Commit

Permalink
feat: Move internal/hmac to pkg/
Browse files Browse the repository at this point in the history
This makes the hmac implementation used by go-scm public for use in other projects.
  • Loading branch information
bigkevmcd committed Feb 20, 2020
1 parent 010ed53 commit 5f94691
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scm/driver/gitea/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"io/ioutil"
"net/http"

"github.com/jenkins-x/go-scm/pkg/hmac"
"github.com/jenkins-x/go-scm/scm"
"github.com/jenkins-x/go-scm/scm/driver/internal/hmac"
)

type webhookService struct {
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/github/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"regexp"
"time"

"github.com/jenkins-x/go-scm/pkg/hmac"
"github.com/jenkins-x/go-scm/scm"
"github.com/jenkins-x/go-scm/scm/driver/internal/hmac"
"github.com/jenkins-x/go-scm/scm/driver/internal/null"
"github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/gogs/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"io/ioutil"
"net/http"

"github.com/jenkins-x/go-scm/pkg/hmac"
"github.com/jenkins-x/go-scm/scm"
"github.com/jenkins-x/go-scm/scm/driver/internal/hmac"
)

type webhookService struct {
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/stash/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"net/http"
"time"

"github.com/jenkins-x/go-scm/pkg/hmac"
"github.com/jenkins-x/go-scm/scm"
"github.com/jenkins-x/go-scm/scm/driver/internal/hmac"
)

// TODO(bradrydzewski) push hook does not include commit message
Expand Down

0 comments on commit 5f94691

Please sign in to comment.