This commit is contained in:
奶爸
2018-05-07 18:42:23 +08:00
parent 22713e3054
commit c9c9d981d7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ import (
"io/ioutil"
"net/http"
"gopkg.in/go-playground/webhooks.v3"
client "github.com/gogits/go-gogs-client"
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
client "github.com/gogits/go-gogs-client"
"gopkg.in/go-playground/webhooks.v3"
)
// Webhook instance contains all methods needed to process events
+1 -1
View File
@@ -28,7 +28,7 @@ func (p Provider) String() string {
// webhooks available providers
const (
GitHub Provider = iota
GitHub Provider = iota
Bitbucket
GitLab
Gogs