Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
This commit is contained in:
parent
1c0a4e166f
commit
4247304f5a
166 changed files with 476 additions and 474 deletions
|
@ -1,5 +1,7 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
go_import_path: code.gitea.io/gitea
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.6
|
- 1.6
|
||||||
- 1.7
|
- 1.7
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -2,7 +2,7 @@ DIST := dist
|
||||||
BIN := bin
|
BIN := bin
|
||||||
|
|
||||||
EXECUTABLE := gitea
|
EXECUTABLE := gitea
|
||||||
IMPORT := github.com/go-gitea/gitea
|
IMPORT := code.gitea.io/gitea
|
||||||
|
|
||||||
SHA := $(shell git rev-parse --short HEAD)
|
SHA := $(shell git rev-parse --short HEAD)
|
||||||
DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S %Z')
|
DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S %Z')
|
||||||
|
@ -11,8 +11,8 @@ BINDATA := $(shell find conf | sed 's/ /\\ /g')
|
||||||
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
|
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
|
||||||
JAVASCRIPTS :=
|
JAVASCRIPTS :=
|
||||||
|
|
||||||
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildTime=$(DATE)"
|
LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildTime=$(DATE)"
|
||||||
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildGitHash=$(SHA)"
|
LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildGitHash=$(SHA)"
|
||||||
|
|
||||||
TARGETS ?= linux/*,darwin/*,windows/*
|
TARGETS ?= linux/*,darwin/*,windows/*
|
||||||
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -13,8 +13,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Unknwon/cae/zip"
|
"github.com/Unknwon/cae/zip"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
12
cmd/serve.go
12
cmd/serve.go
|
@ -14,12 +14,12 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/httplib"
|
"code.gitea.io/gitea/modules/httplib"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CmdUpdate represents the available update sub-command.
|
// CmdUpdate represents the available update sub-command.
|
||||||
|
|
32
cmd/web.go
32
cmd/web.go
|
@ -15,21 +15,21 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/bindata"
|
"code.gitea.io/gitea/modules/bindata"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/template"
|
"code.gitea.io/gitea/modules/template"
|
||||||
"github.com/go-gitea/gitea/routers"
|
"code.gitea.io/gitea/routers"
|
||||||
"github.com/go-gitea/gitea/routers/admin"
|
"code.gitea.io/gitea/routers/admin"
|
||||||
apiv1 "github.com/go-gitea/gitea/routers/api/v1"
|
apiv1 "code.gitea.io/gitea/routers/api/v1"
|
||||||
"github.com/go-gitea/gitea/routers/dev"
|
"code.gitea.io/gitea/routers/dev"
|
||||||
"github.com/go-gitea/gitea/routers/org"
|
"code.gitea.io/gitea/routers/org"
|
||||||
"github.com/go-gitea/gitea/routers/repo"
|
"code.gitea.io/gitea/routers/repo"
|
||||||
"github.com/go-gitea/gitea/routers/user"
|
"code.gitea.io/gitea/routers/user"
|
||||||
"github.com/go-macaron/binding"
|
"github.com/go-macaron/binding"
|
||||||
"github.com/go-macaron/cache"
|
"github.com/go-macaron/cache"
|
||||||
"github.com/go-macaron/captcha"
|
"github.com/go-macaron/captcha"
|
||||||
|
@ -100,7 +100,7 @@ func checkVersion() {
|
||||||
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"},
|
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"},
|
||||||
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
||||||
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
||||||
{"github.com/go-gitea/git", git.Version, "0.4.1"},
|
{"code.gitea.io/git", git.Version, "0.4.1"},
|
||||||
}
|
}
|
||||||
for _, c := range checkers {
|
for _, c := range checkers {
|
||||||
if !version.Compare(c.Version(), c.Expected, ">=") {
|
if !version.Compare(c.Version(), c.Expected, ">=") {
|
||||||
|
|
4
main.go
4
main.go
|
@ -10,8 +10,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/cmd"
|
"code.gitea.io/gitea/cmd"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ package models
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccessMode int
|
type AccessMode int
|
||||||
|
|
|
@ -16,12 +16,12 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ActionType int
|
type ActionType int
|
||||||
|
|
|
@ -14,9 +14,9 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NoticeType int
|
type NoticeType int
|
||||||
|
|
|
@ -17,12 +17,12 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/template/highlight"
|
"code.gitea.io/gitea/modules/template/highlight"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
"github.com/sergi/go-diff/diffmatchpatch"
|
"github.com/sergi/go-diff/diffmatchpatch"
|
||||||
"golang.org/x/net/html/charset"
|
"golang.org/x/net/html/charset"
|
||||||
"golang.org/x/text/transform"
|
"golang.org/x/text/transform"
|
||||||
|
|
|
@ -16,12 +16,12 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
|
// CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
|
||||||
|
|
|
@ -13,9 +13,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})")
|
var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})")
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (issue *Issue) MailSubject() string {
|
func (issue *Issue) MailSubject() string {
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"github.com/go-xorm/core"
|
"github.com/go-xorm/core"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/auth/ldap"
|
"code.gitea.io/gitea/modules/auth/ldap"
|
||||||
"github.com/go-gitea/gitea/modules/auth/pam"
|
"code.gitea.io/gitea/modules/auth/pam"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LoginType int
|
type LoginType int
|
||||||
|
|
|
@ -12,11 +12,11 @@ import (
|
||||||
"gopkg.in/gomail.v2"
|
"gopkg.in/gomail.v2"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/mailer"
|
"code.gitea.io/gitea/modules/mailer"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const _MIN_DB_VER = 4
|
const _MIN_DB_VER = 4
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models/migrations"
|
"code.gitea.io/gitea/models/migrations"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Engine represents a xorm engine or session.
|
// Engine represents a xorm engine or session.
|
||||||
|
|
|
@ -12,8 +12,8 @@ import (
|
||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/sync"
|
"code.gitea.io/gitea/modules/sync"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Release represents a release of repository.
|
// Release represents a release of repository.
|
||||||
|
|
|
@ -21,15 +21,15 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/cae/zip"
|
"github.com/Unknwon/cae/zip"
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/gitea/modules/bindata"
|
"code.gitea.io/gitea/modules/bindata"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/sync"
|
"code.gitea.io/gitea/modules/sync"
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
version "github.com/mcuadros/go-version"
|
version "github.com/mcuadros/go-version"
|
||||||
ini "gopkg.in/ini.v1"
|
ini "gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Branch struct {
|
type Branch struct {
|
||||||
|
|
|
@ -18,11 +18,11 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ___________ .___.__ __ ___________.__.__
|
// ___________ .___.__ __ ___________.__.__
|
||||||
|
|
|
@ -13,10 +13,10 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/sync"
|
"code.gitea.io/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
|
var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
|
||||||
|
|
|
@ -3,8 +3,8 @@ package models_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/go-gitea/gitea/models"
|
. "code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,10 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AccessToken represents a personal access token.
|
// AccessToken represents a personal access token.
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UpdateTask struct {
|
type UpdateTask struct {
|
||||||
|
|
|
@ -24,14 +24,14 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
"github.com/nfnt/resize"
|
"github.com/nfnt/resize"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/avatar"
|
"code.gitea.io/gitea/modules/avatar"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserType int
|
type UserType int
|
||||||
|
|
|
@ -15,12 +15,12 @@ import (
|
||||||
"github.com/go-xorm/xorm"
|
"github.com/go-xorm/xorm"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/httplib"
|
"code.gitea.io/gitea/modules/httplib"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/sync"
|
"code.gitea.io/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
|
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SlackMeta struct {
|
type SlackMeta struct {
|
||||||
|
|
|
@ -15,10 +15,10 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/sync"
|
"code.gitea.io/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var wikiWorkingPool = sync.NewExclusivePool()
|
var wikiWorkingPool = sync.NewExclusivePool()
|
||||||
|
|
|
@ -15,10 +15,10 @@ import (
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func IsAPIPath(url string) bool {
|
func IsAPIPath(url string) bool {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
"gopkg.in/ldap.v2"
|
"gopkg.in/ldap.v2"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SecurityProtocol int
|
type SecurityProtocol int
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-macaron/binding"
|
"github.com/go-macaron/binding"
|
||||||
macaron "gopkg.in/macaron.v1"
|
macaron "gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,8 +24,8 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/Unknwon/i18n"
|
"github.com/Unknwon/i18n"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/gogits/chardet"
|
"github.com/gogits/chardet"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package base
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"strk.kbt.io/projects/go/libravatar"
|
"strk.kbt.io/projects/go/libravatar"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
macaron "gopkg.in/macaron.v1"
|
macaron "gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package context
|
package context
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type APIOrganization struct {
|
type APIOrganization struct {
|
||||||
|
|
|
@ -7,8 +7,8 @@ package context
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-macaron/csrf"
|
"github.com/go-macaron/csrf"
|
||||||
macaron "gopkg.in/macaron.v1"
|
macaron "gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,11 +12,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-macaron/cache"
|
"github.com/go-macaron/cache"
|
||||||
"github.com/go-macaron/csrf"
|
"github.com/go-macaron/csrf"
|
||||||
"github.com/go-macaron/i18n"
|
"github.com/go-macaron/i18n"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package context
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
macaron "gopkg.in/macaron.v1"
|
macaron "gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
editorconfig "gopkg.in/editorconfig/editorconfig-core-go.v1"
|
editorconfig "gopkg.in/editorconfig/editorconfig-core-go.v1"
|
||||||
macaron "gopkg.in/macaron.v1"
|
macaron "gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/cron"
|
"github.com/gogits/cron"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var c = cron.New()
|
var c = cron.New()
|
||||||
|
|
|
@ -17,8 +17,8 @@ import (
|
||||||
"github.com/jaytaylor/html2text"
|
"github.com/jaytaylor/html2text"
|
||||||
"gopkg.in/gomail.v2"
|
"gopkg.in/gomail.v2"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Message struct {
|
type Message struct {
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"github.com/russross/blackfriday"
|
"github.com/russross/blackfriday"
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "github.com/go-gitea/gitea/modules/markdown"
|
. "code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/russross/blackfriday"
|
"github.com/russross/blackfriday"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -25,9 +25,9 @@ import (
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
"strk.kbt.io/projects/go/libravatar"
|
"strk.kbt.io/projects/go/libravatar"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/bindata"
|
"code.gitea.io/gitea/modules/bindata"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/user"
|
"code.gitea.io/gitea/modules/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Scheme string
|
type Scheme string
|
||||||
|
|
|
@ -17,9 +17,9 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func cleanCommand(cmd string) string {
|
func cleanCommand(cmd string) string {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -19,11 +19,11 @@ import (
|
||||||
"golang.org/x/text/transform"
|
"golang.org/x/text/transform"
|
||||||
"gopkg.in/editorconfig/editorconfig-core-go.v1"
|
"gopkg.in/editorconfig/editorconfig-core-go.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewFuncMap() []template.FuncMap {
|
func NewFuncMap() []template.FuncMap {
|
||||||
|
|
|
@ -13,12 +13,12 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/cron"
|
"code.gitea.io/gitea/modules/cron"
|
||||||
"github.com/go-gitea/gitea/modules/process"
|
"code.gitea.io/gitea/modules/process"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -10,13 +10,13 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/go-xorm/core"
|
"github.com/go-xorm/core"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/auth/ldap"
|
"code.gitea.io/gitea/modules/auth/ldap"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers"
|
"code.gitea.io/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers"
|
"code.gitea.io/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,13 +9,13 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers"
|
"code.gitea.io/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization
|
// https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {
|
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {
|
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
"code.gitea.io/gitea/routers/api/v1/repo"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
|
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) {
|
func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) {
|
||||||
|
|
|
@ -10,16 +10,16 @@ import (
|
||||||
"github.com/go-macaron/binding"
|
"github.com/go-macaron/binding"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/admin"
|
"code.gitea.io/gitea/routers/api/v1/admin"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/misc"
|
"code.gitea.io/gitea/routers/api/v1/misc"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/org"
|
"code.gitea.io/gitea/routers/api/v1/org"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
"code.gitea.io/gitea/routers/api/v1/repo"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func repoAssignment() macaron.Handler {
|
func repoAssignment() macaron.Handler {
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ToEmail(email *models.EmailAddress) *api.Email {
|
func ToEmail(email *models.EmailAddress) *api.Email {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package convert
|
package convert
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ToCorrectPageSize makes sure page size is in allowed range.
|
// ToCorrectPageSize makes sure page size is in allowed range.
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package misc
|
package misc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document
|
// https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/user"
|
"code.gitea.io/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func listUserOrgs(ctx *context.APIContext, u *models.User, all bool) {
|
func listUserOrgs(ctx *context.APIContext, u *models.User, all bool) {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListTeams(ctx *context.APIContext) {
|
func ListTeams(ctx *context.APIContext) {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch
|
// https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) {
|
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) {
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/repo"
|
"code.gitea.io/gitea/routers/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content
|
// https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks
|
// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssues(ctx *context.APIContext) {
|
func ListIssues(ctx *context.APIContext) {
|
||||||
|
|
|
@ -6,10 +6,10 @@ package repo
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssueComments(ctx *context.APIContext) {
|
func ListIssueComments(ctx *context.APIContext) {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssueLabels(ctx *context.APIContext) {
|
func ListIssueLabels(ctx *context.APIContext) {
|
||||||
|
|
|
@ -7,12 +7,12 @@ package repo
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func composeDeployKeysAPILink(repoPath string) string {
|
func composeDeployKeysAPILink(repoPath string) string {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListLabels(ctx *context.APIContext) {
|
func ListLabels(ctx *context.APIContext) {
|
||||||
|
|
|
@ -7,10 +7,10 @@ package repo
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListMilestones(ctx *context.APIContext) {
|
func ListMilestones(ctx *context.APIContext) {
|
||||||
|
|
|
@ -7,14 +7,14 @@ package repo
|
||||||
import (
|
import (
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories
|
// https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user
|
// https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user
|
// https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func responseApiUsers(ctx *context.APIContext, users []*models.User) {
|
func responseApiUsers(ctx *context.APIContext, users []*models.User) {
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
"code.gitea.io/gitea/routers/api/v1/convert"
|
||||||
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
"code.gitea.io/gitea/routers/api/v1/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {
|
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {
|
||||||
|
|
|
@ -7,10 +7,10 @@ package user
|
||||||
import (
|
import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
api "github.com/go-gitea/go-sdk/gitea"
|
api "code.gitea.io/go-sdk/gitea"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Search(ctx *context.APIContext) {
|
func Search(ctx *context.APIContext) {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
package dev
|
package dev
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TemplatePreview(ctx *context.Context) {
|
func TemplatePreview(ctx *context.Context) {
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/user"
|
"code.gitea.io/gitea/routers/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -17,20 +17,20 @@ import (
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/cron"
|
"code.gitea.io/gitea/modules/cron"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/mailer"
|
"code.gitea.io/gitea/modules/mailer"
|
||||||
"github.com/go-gitea/gitea/modules/markdown"
|
"code.gitea.io/gitea/modules/markdown"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/ssh"
|
"code.gitea.io/gitea/modules/ssh"
|
||||||
"github.com/go-gitea/gitea/modules/template/highlight"
|
"code.gitea.io/gitea/modules/template/highlight"
|
||||||
"github.com/go-gitea/gitea/modules/user"
|
"code.gitea.io/gitea/modules/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,11 +7,11 @@ package org
|
||||||
import (
|
import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,13 +7,13 @@ package org
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/routers/user"
|
"code.gitea.io/gitea/routers/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ServeData(ctx *context.Context, name string, reader io.Reader) error {
|
func ServeData(ctx *context.Context, name string, reader io.Reader) error {
|
||||||
|
|
|
@ -11,14 +11,14 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/go-gitea/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"github.com/go-gitea/gitea/modules/auth"
|
"code.gitea.io/gitea/modules/auth"
|
||||||
"github.com/go-gitea/gitea/modules/base"
|
"code.gitea.io/gitea/modules/base"
|
||||||
"github.com/go-gitea/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
"github.com/go-gitea/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
"github.com/go-gitea/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
"github.com/go-gitea/gitea/modules/template"
|
"code.gitea.io/gitea/modules/template"
|
||||||
"github.com/go-gitea/git"
|
"code.gitea.io/git"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue