mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-07 09:58:51 +00:00
Format source code
This commit is contained in:
parent
fd361ddf2a
commit
53258bf989
34 changed files with 68 additions and 68 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/drone/envsubst"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/backend"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/backend/docker"
|
||||
|
@ -20,7 +21,6 @@ import (
|
|||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend/yaml/linter"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/interrupt"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/multipart"
|
||||
"github.com/drone/envsubst"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package yaml
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
libcompose "github.com/docker/libcompose/yaml"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/frontend/yaml/types"
|
||||
libcompose "github.com/docker/libcompose/yaml"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -3,8 +3,8 @@ package rpc
|
|||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"time"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/backend"
|
||||
"github.com/laszlocph/woodpecker/cncd/pipeline/pipeline/rpc/proto"
|
||||
|
|
|
@ -17,9 +17,9 @@ package bitbucketserver
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/remote/bitbucketserver/internal"
|
||||
"github.com/franela/goblin"
|
||||
"github.com/mrjones/oauth"
|
||||
)
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/remote/gitea/fixtures"
|
||||
"github.com/franela/goblin"
|
||||
)
|
||||
|
||||
func Test_parse(t *testing.T) {
|
||||
|
|
|
@ -17,8 +17,8 @@ package github
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/google/go-github/github"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
|
||||
"github.com/franela/goblin"
|
||||
)
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/remote/github/fixtures"
|
||||
"github.com/franela/goblin"
|
||||
)
|
||||
|
||||
func Test_parser(t *testing.T) {
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/remote/gitlab/testdata"
|
||||
"github.com/franela/goblin"
|
||||
)
|
||||
|
||||
func Test_Gitlab(t *testing.T) {
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/remote/gitlab3/testdata"
|
||||
"github.com/franela/goblin"
|
||||
)
|
||||
|
||||
func Test_Gitlab(t *testing.T) {
|
||||
|
|
|
@ -22,8 +22,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/gogits/go-gogs-client"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
)
|
||||
|
||||
// helper function that converts a Gogs repository to a Drone repository.
|
||||
|
|
|
@ -18,8 +18,8 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
)
|
||||
|
||||
// NoCache is a middleware function that appends headers
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/laszlocph/woodpecker/remote"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/remote"
|
||||
)
|
||||
|
||||
// Remote is a middleware function that initializes the Remote and attaches to
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
package session
|
||||
|
||||
import (
|
||||
"github.com/laszlocph/woodpecker/shared/token"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/shared/token"
|
||||
)
|
||||
|
||||
// AuthorizeAgent authorizes requsts from build agents to access the queue.
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
)
|
||||
|
||||
// Version is a middleware function that appends the Drone version information
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/router/middleware/session"
|
||||
"github.com/laszlocph/woodpecker/store"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// FileList gets a list file by build.
|
||||
|
|
|
@ -18,8 +18,8 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/laszlocph/woodpecker/server"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/server"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
|
|
|
@ -24,10 +24,10 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/laszlocph/woodpecker-ui/dist"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/laszlocph/woodpecker/shared/token"
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
"github.com/laszlocph/woodpecker-ui/dist"
|
||||
|
||||
"github.com/dimfeld/httptreemux"
|
||||
)
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/laszlocph/woodpecker/store"
|
||||
"github.com/laszlocph/woodpecker/version"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// Health endpoint returns a 500 if the server state is unhealthy.
|
||||
|
|
|
@ -17,8 +17,8 @@ package datastore
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
)
|
||||
|
||||
func TestRepos(t *testing.T) {
|
||||
|
|
|
@ -17,8 +17,8 @@ package datastore
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
"github.com/franela/goblin"
|
||||
"github.com/laszlocph/woodpecker/model"
|
||||
)
|
||||
|
||||
func TestUsers(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue