add gogs support
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/naiba/webhooks"
|
"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
@@ -9,7 +9,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/naiba/webhooks"
|
"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
@@ -6,7 +6,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/naiba/webhooks"
|
"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
-6
@@ -1,8 +1,3 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2018, 奶爸<1@5.nu>
|
|
||||||
* All rights reserved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package gogs
|
package gogs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -11,7 +6,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/naiba/webhooks"
|
"gopkg.in/go-playground/webhooks.v3"
|
||||||
client "github.com/gogits/go-gogs-client"
|
client "github.com/gogits/go-gogs-client"
|
||||||
"crypto/hmac"
|
"crypto/hmac"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
|
|||||||
Reference in New Issue
Block a user