This commit is contained in:
6543 2020-12-06 15:11:10 +01:00
Родитель 18e8204d73
Коммит f2d554b502
11 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -7,8 +7,8 @@ import (
"github.com/go-gitea/lgtm/router/middleware/session" "github.com/go-gitea/lgtm/router/middleware/session"
"github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store"
log "github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
) )
// GetMaintainer gets the MAINTAINER configuration file. // GetMaintainer gets the MAINTAINER configuration file.

Просмотреть файл

@ -11,8 +11,8 @@ import (
"github.com/go-gitea/lgtm/shared/token" "github.com/go-gitea/lgtm/shared/token"
"github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store"
"github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
) )
// GetRepos gets the active repository list. // GetRepos gets the active repository list.

Просмотреть файл

@ -5,8 +5,8 @@ import (
"github.com/go-gitea/lgtm/model" "github.com/go-gitea/lgtm/model"
"github.com/go-gitea/lgtm/router/middleware/session" "github.com/go-gitea/lgtm/router/middleware/session"
"github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
) )
// GetTeams gets the list of user teams. // GetTeams gets the list of user teams.

Просмотреть файл

@ -12,9 +12,9 @@ import (
cache "github.com/go-gitea/lgtm/cache/mock" cache "github.com/go-gitea/lgtm/cache/mock"
"github.com/sirupsen/logrus"
"github.com/franela/goblin" "github.com/franela/goblin"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
) )
func TestTeams(t *testing.T) { func TestTeams(t *testing.T) {

Просмотреть файл

@ -8,8 +8,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/sirupsen/logrus"
"github.com/go-gitea/lgtm/model" "github.com/go-gitea/lgtm/model"
"github.com/sirupsen/logrus"
"github.com/franela/goblin" "github.com/franela/goblin"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

Просмотреть файл

@ -7,10 +7,10 @@ import (
"github.com/go-gitea/lgtm/router" "github.com/go-gitea/lgtm/router"
"github.com/go-gitea/lgtm/router/middleware" "github.com/go-gitea/lgtm/router/middleware"
"github.com/sirupsen/logrus"
"github.com/gin-gonic/contrib/ginrus" "github.com/gin-gonic/contrib/ginrus"
"github.com/ianschenck/envflag" "github.com/ianschenck/envflag"
_ "github.com/joho/godotenv/autoload" _ "github.com/joho/godotenv/autoload"
"github.com/sirupsen/logrus"
) )
var ( var (

Просмотреть файл

@ -7,10 +7,10 @@ import (
"strings" "strings"
"time" "time"
log "github.com/sirupsen/logrus"
"github.com/go-gitea/lgtm/model" "github.com/go-gitea/lgtm/model"
"github.com/go-gitea/lgtm/shared/httputil" "github.com/go-gitea/lgtm/shared/httputil"
"github.com/google/go-github/github" "github.com/google/go-github/github"
log "github.com/sirupsen/logrus"
"golang.org/x/net/context" "golang.org/x/net/context"
"golang.org/x/oauth2" "golang.org/x/oauth2"
) )

Просмотреть файл

@ -4,8 +4,8 @@ import (
"github.com/go-gitea/lgtm/cache" "github.com/go-gitea/lgtm/cache"
"github.com/go-gitea/lgtm/router/middleware/session" "github.com/go-gitea/lgtm/router/middleware/session"
log "github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
) )
// RepoAdmin is a middleware to check if the current user is an admin. // RepoAdmin is a middleware to check if the current user is an admin.

Просмотреть файл

@ -5,11 +5,11 @@ import (
"os" "os"
"time" "time"
"github.com/sirupsen/logrus"
"github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store"
"github.com/go-gitea/lgtm/store/migration" "github.com/go-gitea/lgtm/store/migration"
"github.com/rubenv/sql-migrate" "github.com/rubenv/sql-migrate"
"github.com/russross/meddler" "github.com/russross/meddler"
"github.com/sirupsen/logrus"
// Import the MySQL driver // Import the MySQL driver
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"

Просмотреть файл

@ -9,8 +9,8 @@ import (
"github.com/go-gitea/lgtm/remote" "github.com/go-gitea/lgtm/remote"
"github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store"
log "github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
) )
var ( var (

Просмотреть файл

@ -10,8 +10,8 @@ import (
"github.com/go-gitea/lgtm/shared/token" "github.com/go-gitea/lgtm/shared/token"
"github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store"
log "github.com/sirupsen/logrus"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
) )
// Login attempts to authorize a user via GitHub oauth2. If the user does not // Login attempts to authorize a user via GitHub oauth2. If the user does not