godmt
This commit is contained in:
+2
-2
@@ -6,11 +6,11 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks.v3"
|
|
||||||
client "github.com/gogits/go-gogs-client"
|
|
||||||
"crypto/hmac"
|
"crypto/hmac"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
client "github.com/gogits/go-gogs-client"
|
||||||
|
"gopkg.in/go-playground/webhooks.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Webhook instance contains all methods needed to process events
|
// Webhook instance contains all methods needed to process events
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ func (p Provider) String() string {
|
|||||||
|
|
||||||
// webhooks available providers
|
// webhooks available providers
|
||||||
const (
|
const (
|
||||||
GitHub Provider = iota
|
GitHub Provider = iota
|
||||||
Bitbucket
|
Bitbucket
|
||||||
GitLab
|
GitLab
|
||||||
Gogs
|
Gogs
|
||||||
|
|||||||
Reference in New Issue
Block a user