瀏覽代碼

Updated Hook

Yoginth 7 年之前
父節點
當前提交
14e20f73f8
共有 1 個文件被更改,包括 5 次插入7 次删除
  1. 5 7
      models/webhook.go

+ 5 - 7
models/webhook.go

@@ -6,6 +6,10 @@ import (
 	"crypto/tls"
 	"encoding/hex"
 	"fmt"
+	"gitote/gitote/models/errors"
+	"gitote/gitote/pkg/httplib"
+	"gitote/gitote/pkg/setting"
+	"gitote/gitote/pkg/sync"
 	"io/ioutil"
 	"strings"
 	"time"
@@ -13,14 +17,8 @@ import (
 	"github.com/go-xorm/xorm"
 	"github.com/json-iterator/go"
 	gouuid "github.com/satori/go.uuid"
-	log "gopkg.in/clog.v1"
-
 	api "gitlab.com/gitote/go-gitote-client"
-
-	"gitote/gitote/models/errors"
-	"gitote/gitote/pkg/httplib"
-	"gitote/gitote/pkg/setting"
-	"gitote/gitote/pkg/sync"
+	log "gopkg.in/clog.v1"
 )
 
 var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)