mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-19 14:05:31 +00:00
Renamed package
This commit is contained in:
parent
2fbaa56eee
commit
ca5817ffc2
109 changed files with 245 additions and 245 deletions
|
@ -22,7 +22,7 @@ set -x
|
||||||
git clone git@github.com:drone/drone-enterprise.git extras
|
git clone git@github.com:drone/drone-enterprise.git extras
|
||||||
|
|
||||||
# build a static binary with the build number and extra features.
|
# build a static binary with the build number and extra features.
|
||||||
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server
|
go build -ldflags '-extldflags "-static" -X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/laszlocph/drone-oss-08/extras/cmd/drone-server
|
||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
|
||||||
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
|
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
|
||||||
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
|
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
path: src/github.com/drone/drone
|
path: src/github.com/laszlocph/drone-oss-08
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: golang:1.8
|
image: golang:1.8
|
||||||
commands:
|
commands:
|
||||||
- go get -u github.com/drone/drone-ui/dist
|
- go get -u github.com/laszlocph/drone-ui/dist
|
||||||
- go get -u golang.org/x/tools/cmd/cover
|
- go get -u golang.org/x/tools/cmd/cover
|
||||||
- go get -u golang.org/x/net/context
|
- go get -u golang.org/x/net/context
|
||||||
- go get -u golang.org/x/net/context/ctxhttp
|
- go get -u golang.org/x/net/context/ctxhttp
|
||||||
|
@ -20,7 +20,7 @@ pipeline:
|
||||||
- DATABASE_DRIVER=postgres
|
- DATABASE_DRIVER=postgres
|
||||||
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
|
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
|
||||||
commands:
|
commands:
|
||||||
- go test github.com/drone/drone/store/datastore
|
- go test github.com/laszlocph/drone-oss-08/store/datastore
|
||||||
|
|
||||||
test_mysql:
|
test_mysql:
|
||||||
image: golang:1.8
|
image: golang:1.8
|
||||||
|
@ -28,7 +28,7 @@ pipeline:
|
||||||
- DATABASE_DRIVER=mysql
|
- DATABASE_DRIVER=mysql
|
||||||
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
|
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
|
||||||
commands:
|
commands:
|
||||||
- go test github.com/drone/drone/store/datastore
|
- go test github.com/laszlocph/drone-oss-08/store/datastore
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: golang:1.8
|
image: golang:1.8
|
||||||
|
|
6
BUILDING
6
BUILDING
|
@ -1,7 +1,7 @@
|
||||||
1. Install go 1.9 or later
|
1. Install go 1.9 or later
|
||||||
2. Install dependencies
|
2. Install dependencies
|
||||||
|
|
||||||
go get -u github.com/drone/drone-ui/dist
|
go get -u github.com/laszlocph/drone-ui/dist
|
||||||
go get -u golang.org/x/net/context
|
go get -u golang.org/x/net/context
|
||||||
go get -u golang.org/x/net/context/ctxhttp
|
go get -u golang.org/x/net/context/ctxhttp
|
||||||
go get -u github.com/golang/protobuf/proto
|
go get -u github.com/golang/protobuf/proto
|
||||||
|
@ -9,5 +9,5 @@
|
||||||
|
|
||||||
3. Install binaries to $GOPATH/bin
|
3. Install binaries to $GOPATH/bin
|
||||||
|
|
||||||
go install github.com/drone/drone/cmd/drone-agent
|
go install github.com/laszlocph/drone-oss-08/cmd/drone-agent
|
||||||
go install github.com/drone/drone/cmd/drone-server
|
go install github.com/laszlocph/drone-oss-08/cmd/drone-server
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
w.Header().Add("Content-Type", "text/json")
|
w.Header().Add("Content-Type", "text/json")
|
||||||
json.NewEncoder(w).Encode(versionResp{
|
json.NewEncoder(w).Encode(versionResp{
|
||||||
Source: "https://github.com/drone/drone",
|
Source: "https://github.com/laszlocph/drone-oss-08",
|
||||||
Version: version.Version.String(),
|
Version: version.Version.String(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
|
|
||||||
_ "github.com/joho/godotenv/autoload"
|
_ "github.com/joho/godotenv/autoload"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
|
|
||||||
_ "github.com/joho/godotenv/autoload"
|
_ "github.com/joho/godotenv/autoload"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
|
@ -36,12 +36,12 @@ import (
|
||||||
"github.com/cncd/logging"
|
"github.com/cncd/logging"
|
||||||
"github.com/cncd/pipeline/pipeline/rpc/proto"
|
"github.com/cncd/pipeline/pipeline/rpc/proto"
|
||||||
"github.com/cncd/pubsub"
|
"github.com/cncd/pubsub"
|
||||||
"github.com/drone/drone/plugins/sender"
|
"github.com/laszlocph/drone-oss-08/plugins/sender"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/router"
|
"github.com/laszlocph/drone-oss-08/router"
|
||||||
"github.com/drone/drone/router/middleware"
|
"github.com/laszlocph/drone-oss-08/router/middleware"
|
||||||
droneserver "github.com/drone/drone/server"
|
droneserver "github.com/laszlocph/drone-oss-08/server"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/gin-gonic/contrib/ginrus"
|
"github.com/gin-gonic/contrib/ginrus"
|
||||||
|
|
|
@ -20,21 +20,21 @@ import (
|
||||||
|
|
||||||
"github.com/cncd/queue"
|
"github.com/cncd/queue"
|
||||||
"github.com/dimfeld/httptreemux"
|
"github.com/dimfeld/httptreemux"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/plugins/registry"
|
"github.com/laszlocph/drone-oss-08/plugins/registry"
|
||||||
"github.com/drone/drone/plugins/secrets"
|
"github.com/laszlocph/drone-oss-08/plugins/secrets"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/remote/bitbucket"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket"
|
||||||
"github.com/drone/drone/remote/bitbucketserver"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver"
|
||||||
"github.com/drone/drone/remote/coding"
|
"github.com/laszlocph/drone-oss-08/remote/coding"
|
||||||
"github.com/drone/drone/remote/gitea"
|
"github.com/laszlocph/drone-oss-08/remote/gitea"
|
||||||
"github.com/drone/drone/remote/github"
|
"github.com/laszlocph/drone-oss-08/remote/github"
|
||||||
"github.com/drone/drone/remote/gitlab"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab"
|
||||||
"github.com/drone/drone/remote/gitlab3"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab3"
|
||||||
"github.com/drone/drone/remote/gogs"
|
"github.com/laszlocph/drone-oss-08/remote/gogs"
|
||||||
"github.com/drone/drone/server/web"
|
"github.com/laszlocph/drone-oss-08/server/web"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/drone/drone/store/datastore"
|
"github.com/laszlocph/drone-oss-08/store/datastore"
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package registry
|
package registry
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type builtin struct {
|
type builtin struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package secrets
|
package secrets
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type builtin struct {
|
type builtin struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package sender
|
package sender
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type builtin struct {
|
type builtin struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package sender
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/plugins/internal"
|
"github.com/laszlocph/drone-oss-08/plugins/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
type plugin struct {
|
type plugin struct {
|
||||||
|
|
|
@ -19,10 +19,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/remote/bitbucket/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
|
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucket/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/fixtures"
|
||||||
"github.com/drone/drone/remote/bitbucket/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucket/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
|
||||||
|
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucket/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucket/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/remote/bitbucket/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucket/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,9 +28,9 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/remote/bitbucketserver/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
|
||||||
"github.com/mrjones/oauth"
|
"github.com/mrjones/oauth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucketserver/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
|
||||||
"github.com/mrjones/oauth"
|
"github.com/mrjones/oauth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ package bitbucketserver
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucketserver/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/mrjones/oauth"
|
"github.com/mrjones/oauth"
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,7 +26,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/mrjones/oauth"
|
"github.com/mrjones/oauth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ package bitbucketserver
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/bitbucketserver/internal"
|
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/remote/coding/internal"
|
"github.com/laszlocph/drone-oss-08/remote/coding/internal"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
|
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/coding/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/coding/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/coding/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/coding/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
)
|
)
|
||||||
|
|
||||||
// IMPORTANT Gerrit support is not yet implemented. This file is a placeholder
|
// IMPORTANT Gerrit support is not yet implemented. This file is a placeholder
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"code.gitea.io/sdk/gitea"
|
"code.gitea.io/sdk/gitea"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Opts defines configuration options.
|
// Opts defines configuration options.
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gitea/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/gitea/fixtures"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.gitea.io/sdk/gitea"
|
"code.gitea.io/sdk/gitea"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// helper function that converts a Gitea repository to a Drone repository.
|
// helper function that converts a Gitea repository to a Drone repository.
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.gitea.io/sdk/gitea"
|
"code.gitea.io/sdk/gitea"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gitea/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/gitea/fixtures"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
|
|
||||||
"github.com/google/go-github/github"
|
"github.com/google/go-github/github"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ package github
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/google/go-github/github"
|
"github.com/google/go-github/github"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
|
|
|
@ -24,9 +24,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
|
|
||||||
"github.com/google/go-github/github"
|
"github.com/google/go-github/github"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/github/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/github/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/github/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/github/fixtures"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -24,12 +24,12 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/shared/oauth2"
|
"github.com/laszlocph/drone-oss-08/shared/oauth2"
|
||||||
|
|
||||||
"github.com/drone/drone/remote/gitlab/client"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const DefaultScope = "api"
|
const DefaultScope = "api"
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gitlab/testdata"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab/testdata"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/remote/gitlab/client"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -24,12 +24,12 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/shared/oauth2"
|
"github.com/laszlocph/drone-oss-08/shared/oauth2"
|
||||||
|
|
||||||
"github.com/drone/drone/remote/gitlab3/client"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab3/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const DefaultScope = "api"
|
const DefaultScope = "api"
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gitlab3/testdata"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab3/testdata"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/remote/gitlab3/client"
|
"github.com/laszlocph/drone-oss-08/remote/gitlab3/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/gogits/go-gogs-client"
|
"github.com/gogits/go-gogs-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gogs/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/gogs/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/gogits/go-gogs-client"
|
"github.com/gogits/go-gogs-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote/gogs/fixtures"
|
"github.com/laszlocph/drone-oss-08/remote/gogs/fixtures"
|
||||||
|
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
"github.com/gogits/go-gogs-client"
|
"github.com/gogits/go-gogs-client"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -17,7 +17,7 @@ package mock
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
|
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package session
|
package session
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -17,9 +17,9 @@ package session
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -17,9 +17,9 @@ package token
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -20,13 +20,13 @@ import (
|
||||||
"github.com/dimfeld/httptreemux"
|
"github.com/dimfeld/httptreemux"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/drone/drone/router/middleware/header"
|
"github.com/laszlocph/drone-oss-08/router/middleware/header"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/router/middleware/token"
|
"github.com/laszlocph/drone-oss-08/router/middleware/token"
|
||||||
"github.com/drone/drone/server"
|
"github.com/laszlocph/drone-oss-08/server"
|
||||||
"github.com/drone/drone/server/debug"
|
"github.com/laszlocph/drone-oss-08/server/debug"
|
||||||
"github.com/drone/drone/server/metrics"
|
"github.com/laszlocph/drone-oss-08/server/metrics"
|
||||||
"github.com/drone/drone/server/web"
|
"github.com/laszlocph/drone-oss-08/server/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load loads the router
|
// Load loads the router
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -28,13 +28,13 @@ import (
|
||||||
"github.com/cncd/pipeline/pipeline/rpc"
|
"github.com/cncd/pipeline/pipeline/rpc"
|
||||||
"github.com/cncd/pubsub"
|
"github.com/cncd/pubsub"
|
||||||
"github.com/cncd/queue"
|
"github.com/cncd/queue"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetBuilds(c *gin.Context) {
|
func GetBuilds(c *gin.Context) {
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,11 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/drone/envsubst"
|
"github.com/drone/envsubst"
|
||||||
|
|
||||||
"github.com/cncd/pipeline/pipeline/backend"
|
"github.com/cncd/pipeline/pipeline/backend"
|
||||||
|
|
|
@ -17,7 +17,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMultilineEnvsubst(t *testing.T) {
|
func TestMultilineEnvsubst(t *testing.T) {
|
||||||
|
|
|
@ -19,11 +19,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/drone/drone/server"
|
"github.com/laszlocph/drone-oss-08/server"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,8 +17,8 @@ package server
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,12 +23,12 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/shared/httputil"
|
"github.com/laszlocph/drone-oss-08/shared/httputil"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func PostRepo(c *gin.Context) {
|
func PostRepo(c *gin.Context) {
|
||||||
|
|
|
@ -34,9 +34,9 @@ import (
|
||||||
"github.com/cncd/pubsub"
|
"github.com/cncd/pubsub"
|
||||||
"github.com/cncd/queue"
|
"github.com/cncd/queue"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
"github.com/drone/expr"
|
"github.com/drone/expr"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,8 +17,8 @@ package server
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,9 +24,9 @@ import (
|
||||||
|
|
||||||
"github.com/cncd/logging"
|
"github.com/cncd/logging"
|
||||||
"github.com/cncd/pubsub"
|
"github.com/cncd/pubsub"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
|
@ -17,7 +17,7 @@ package swagger
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// swagger:route GET /users/{login} user getUser
|
// swagger:route GET /users/{login} user getUser
|
||||||
|
|
|
@ -17,9 +17,9 @@ package server
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Syncer synces the user repository and permissions.
|
// Syncer synces the user repository and permissions.
|
||||||
|
|
|
@ -24,11 +24,11 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/remote"
|
"github.com/laszlocph/drone-oss-08/remote"
|
||||||
"github.com/drone/drone/router/middleware/session"
|
"github.com/laszlocph/drone-oss-08/router/middleware/session"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetSelf(c *gin.Context) {
|
func GetSelf(c *gin.Context) {
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetUsers(c *gin.Context) {
|
func GetUsers(c *gin.Context) {
|
||||||
|
|
|
@ -24,10 +24,10 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone-ui/dist"
|
"github.com/laszlocph/drone-ui/dist"
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/shared/token"
|
"github.com/laszlocph/drone-oss-08/shared/token"
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
|
|
||||||
"github.com/dimfeld/httptreemux"
|
"github.com/dimfeld/httptreemux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/store"
|
"github.com/laszlocph/drone-oss-08/store"
|
||||||
"github.com/drone/drone/version"
|
"github.com/laszlocph/drone-oss-08/version"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ func Health(c *gin.Context) {
|
||||||
// Version endpoint returns the server version and build information.
|
// Version endpoint returns the server version and build information.
|
||||||
func Version(c *gin.Context) {
|
func Version(c *gin.Context) {
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
"source": "https://github.com/drone/drone",
|
"source": "https://github.com/laszlocph/drone-oss-08",
|
||||||
"version": version.Version.String(),
|
"version": version.Version.String(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ package datastore
|
||||||
import (
|
import (
|
||||||
gosql "database/sql"
|
gosql "database/sql"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConfig(t *testing.T) {
|
func TestConfig(t *testing.T) {
|
||||||
|
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/drone/drone/store/datastore/ddl/mysql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/mysql"
|
||||||
"github.com/drone/drone/store/datastore/ddl/postgres"
|
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/postgres"
|
||||||
"github.com/drone/drone/store/datastore/ddl/sqlite"
|
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Supported database drivers
|
// Supported database drivers
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
|
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFileFind(t *testing.T) {
|
func TestFileFind(t *testing.T) {
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLogCreateFind(t *testing.T) {
|
func TestLogCreateFind(t *testing.T) {
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
|
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPermFind(t *testing.T) {
|
func TestPermFind(t *testing.T) {
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestProcFind(t *testing.T) {
|
func TestProcFind(t *testing.T) {
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRegistryFind(t *testing.T) {
|
func TestRegistryFind(t *testing.T) {
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/franela/goblin"
|
"github.com/franela/goblin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package datastore
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSecretFind(t *testing.T) {
|
func TestSecretFind(t *testing.T) {
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
package datastore
|
package datastore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/model"
|
"github.com/laszlocph/drone-oss-08/model"
|
||||||
"github.com/drone/drone/store/datastore/sql"
|
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
|
||||||
"github.com/russross/meddler"
|
"github.com/russross/meddler"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue