diff --git a/api/maintainer.go b/api/maintainer.go index c423b0f..f26ac58 100644 --- a/api/maintainer.go +++ b/api/maintainer.go @@ -7,8 +7,8 @@ import ( "github.com/go-gitea/lgtm/router/middleware/session" "github.com/go-gitea/lgtm/store" - log "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + log "github.com/sirupsen/logrus" ) // GetMaintainer gets the MAINTAINER configuration file. diff --git a/api/repos.go b/api/repos.go index f29e46f..93d106e 100644 --- a/api/repos.go +++ b/api/repos.go @@ -11,8 +11,8 @@ import ( "github.com/go-gitea/lgtm/shared/token" "github.com/go-gitea/lgtm/store" - "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + "github.com/sirupsen/logrus" ) // GetRepos gets the active repository list. diff --git a/api/teams.go b/api/teams.go index f5456c4..8ae7b9a 100644 --- a/api/teams.go +++ b/api/teams.go @@ -5,8 +5,8 @@ import ( "github.com/go-gitea/lgtm/model" "github.com/go-gitea/lgtm/router/middleware/session" - "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + "github.com/sirupsen/logrus" ) // GetTeams gets the list of user teams. diff --git a/api/teams_test.go b/api/teams_test.go index c71bc36..0d4b7fd 100644 --- a/api/teams_test.go +++ b/api/teams_test.go @@ -12,9 +12,9 @@ import ( cache "github.com/go-gitea/lgtm/cache/mock" - "github.com/sirupsen/logrus" "github.com/franela/goblin" "github.com/gin-gonic/gin" + "github.com/sirupsen/logrus" ) func TestTeams(t *testing.T) { diff --git a/api/user_test.go b/api/user_test.go index 2a3c42b..2c2e896 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "github.com/sirupsen/logrus" "github.com/go-gitea/lgtm/model" + "github.com/sirupsen/logrus" "github.com/franela/goblin" "github.com/gin-gonic/gin" diff --git a/main.go b/main.go index 3c29d38..5fc557d 100644 --- a/main.go +++ b/main.go @@ -7,10 +7,10 @@ import ( "github.com/go-gitea/lgtm/router" "github.com/go-gitea/lgtm/router/middleware" - "github.com/sirupsen/logrus" "github.com/gin-gonic/contrib/ginrus" "github.com/ianschenck/envflag" _ "github.com/joho/godotenv/autoload" + "github.com/sirupsen/logrus" ) var ( diff --git a/remote/github/github.go b/remote/github/github.go index d1291c4..1f69f64 100644 --- a/remote/github/github.go +++ b/remote/github/github.go @@ -7,10 +7,10 @@ import ( "strings" "time" - log "github.com/sirupsen/logrus" "github.com/go-gitea/lgtm/model" "github.com/go-gitea/lgtm/shared/httputil" "github.com/google/go-github/github" + log "github.com/sirupsen/logrus" "golang.org/x/net/context" "golang.org/x/oauth2" ) diff --git a/router/middleware/access/access.go b/router/middleware/access/access.go index 62a5d6f..14267fd 100644 --- a/router/middleware/access/access.go +++ b/router/middleware/access/access.go @@ -4,8 +4,8 @@ import ( "github.com/go-gitea/lgtm/cache" "github.com/go-gitea/lgtm/router/middleware/session" - log "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + log "github.com/sirupsen/logrus" ) // RepoAdmin is a middleware to check if the current user is an admin. diff --git a/store/datastore/datastore.go b/store/datastore/datastore.go index 6428222..6ced143 100644 --- a/store/datastore/datastore.go +++ b/store/datastore/datastore.go @@ -5,11 +5,11 @@ import ( "os" "time" - "github.com/sirupsen/logrus" "github.com/go-gitea/lgtm/store" "github.com/go-gitea/lgtm/store/migration" "github.com/rubenv/sql-migrate" "github.com/russross/meddler" + "github.com/sirupsen/logrus" // Import the MySQL driver _ "github.com/go-sql-driver/mysql" diff --git a/web/hook.go b/web/hook.go index f58c4ac..a30f0a7 100644 --- a/web/hook.go +++ b/web/hook.go @@ -9,8 +9,8 @@ import ( "github.com/go-gitea/lgtm/remote" "github.com/go-gitea/lgtm/store" - log "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + log "github.com/sirupsen/logrus" ) var ( diff --git a/web/login.go b/web/login.go index 2ef6217..336d076 100644 --- a/web/login.go +++ b/web/login.go @@ -10,8 +10,8 @@ import ( "github.com/go-gitea/lgtm/shared/token" "github.com/go-gitea/lgtm/store" - log "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" + log "github.com/sirupsen/logrus" ) // Login attempts to authorize a user via GitHub oauth2. If the user does not