Merge pull request #1 from andreynering/import-paths
Rename import paths: "github.com/gogits/gogs" -> "github.com/go-gitea/gitea"
This commit is contained in:
commit
142d35e8d2
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
LDFLAGS += -X "github.com/gogits/gogs/modules/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')"
|
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')"
|
||||||
LDFLAGS += -X "github.com/gogits/gogs/modules/setting.BuildGitHash=$(shell git rev-parse HEAD)"
|
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildGitHash=$(shell git rev-parse HEAD)"
|
||||||
|
|
||||||
DATA_FILES := $(shell find conf | sed 's/ /\\ /g')
|
DATA_FILES := $(shell find conf | sed 's/ /\\ /g')
|
||||||
LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less)
|
LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less)
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -16,8 +16,8 @@ import (
|
||||||
"github.com/Unknwon/cae/zip"
|
"github.com/Unknwon/cae/zip"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CmdDump = cli.Command{
|
var CmdDump = cli.Command{
|
||||||
|
|
10
cmd/serve.go
10
cmd/serve.go
|
@ -18,11 +18,11 @@ import (
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/httplib"
|
"github.com/go-gitea/gitea/modules/httplib"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CmdUpdate = cli.Command{
|
var CmdUpdate = cli.Command{
|
||||||
|
|
28
cmd/web.go
28
cmd/web.go
|
@ -32,20 +32,20 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
"github.com/gogits/go-gogs-client"
|
"github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/bindata"
|
"github.com/go-gitea/gitea/modules/bindata"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/template"
|
"github.com/go-gitea/gitea/modules/template"
|
||||||
"github.com/gogits/gogs/routers"
|
"github.com/go-gitea/gitea/routers"
|
||||||
"github.com/gogits/gogs/routers/admin"
|
"github.com/go-gitea/gitea/routers/admin"
|
||||||
apiv1 "github.com/gogits/gogs/routers/api/v1"
|
apiv1 "github.com/go-gitea/gitea/routers/api/v1"
|
||||||
"github.com/gogits/gogs/routers/dev"
|
"github.com/go-gitea/gitea/routers/dev"
|
||||||
"github.com/gogits/gogs/routers/org"
|
"github.com/go-gitea/gitea/routers/org"
|
||||||
"github.com/gogits/gogs/routers/repo"
|
"github.com/go-gitea/gitea/routers/repo"
|
||||||
"github.com/gogits/gogs/routers/user"
|
"github.com/go-gitea/gitea/routers/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CmdWeb = cli.Command{
|
var CmdWeb = cli.Command{
|
||||||
|
|
4
gogs.go
4
gogs.go
|
@ -13,8 +13,8 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/gogits/gogs/cmd"
|
"github.com/go-gitea/gitea/cmd"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.9.99.0915"
|
const APP_VER = "0.9.99.0915"
|
||||||
|
|
|
@ -7,7 +7,7 @@ package models
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccessMode int
|
type AccessMode int
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NoticeType int
|
type NoticeType int
|
||||||
|
|
|
@ -23,11 +23,11 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/template/highlight"
|
"github.com/go-gitea/gitea/modules/template/highlight"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DiffLineType uint8
|
type DiffLineType uint8
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
gouuid "github.com/satori/go.uuid"
|
gouuid "github.com/satori/go.uuid"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -14,8 +14,8 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/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.
|
||||||
|
|
|
@ -15,7 +15,7 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/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/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/auth/ldap"
|
"github.com/go-gitea/gitea/modules/auth/ldap"
|
||||||
"github.com/gogits/gogs/modules/auth/pam"
|
"github.com/go-gitea/gitea/modules/auth/pam"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/mailer"
|
"github.com/go-gitea/gitea/modules/mailer"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models/migrations"
|
"github.com/go-gitea/gitea/models/migrations"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -17,10 +17,10 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Release represents a release of repository.
|
// Release represents a release of repository.
|
||||||
|
|
|
@ -28,12 +28,12 @@ import (
|
||||||
git "github.com/gogits/git-module"
|
git "github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/bindata"
|
"github.com/go-gitea/gitea/modules/bindata"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
|
|
||||||
git "github.com/gogits/git-module"
|
git "github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
|
var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package models_test
|
package models_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/gogits/gogs/models"
|
. "github.com/go-gitea/gitea/models"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRepo(t *testing.T) {
|
func TestRepo(t *testing.T) {
|
||||||
|
|
|
@ -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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AccessToken represents a personal access token.
|
// AccessToken represents a personal access token.
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
|
|
||||||
git "github.com/gogits/git-module"
|
git "github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UpdateTask struct {
|
type UpdateTask struct {
|
||||||
|
|
|
@ -27,11 +27,11 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/avatar"
|
"github.com/go-gitea/gitea/modules/avatar"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserType int
|
type UserType int
|
||||||
|
|
|
@ -17,10 +17,10 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/httplib"
|
"github.com/go-gitea/gitea/modules/httplib"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/sync"
|
"github.com/go-gitea/gitea/modules/sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
|
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SlackMeta struct {
|
type SlackMeta struct {
|
||||||
|
|
|
@ -17,8 +17,8 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/sync"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SecurityProtocol int
|
type SecurityProtocol int
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/go-macaron/binding"
|
"github.com/go-macaron/binding"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// _______________________________________ _________.______________________ _______________.___.
|
// _______________________________________ _________.______________________ _______________.___.
|
||||||
|
|
|
@ -26,8 +26,8 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/chardet"
|
"github.com/gogits/chardet"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EncodeMD5 encodes string to md5 hex value.
|
// EncodeMD5 encodes string to md5 hex value.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type APIContext struct {
|
type APIContext struct {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package context
|
package context
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type APIOrganization struct {
|
type APIOrganization struct {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/go-macaron/csrf"
|
"github.com/go-macaron/csrf"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ToggleOptions struct {
|
type ToggleOptions struct {
|
||||||
|
|
|
@ -18,11 +18,11 @@ import (
|
||||||
"github.com/go-macaron/session"
|
"github.com/go-macaron/session"
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Context represents context of a request.
|
// Context represents context of a request.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Organization struct {
|
type Organization struct {
|
||||||
|
|
|
@ -16,9 +16,9 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PullRequest struct {
|
type PullRequest struct {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/cron"
|
"github.com/gogits/cron"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package markdown_test
|
package markdown_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/gogits/gogs/modules/markdown"
|
. "github.com/go-gitea/gitea/modules/markdown"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/russross/blackfriday"
|
"github.com/russross/blackfriday"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -24,9 +24,9 @@ import (
|
||||||
"github.com/strk/go-libravatar"
|
"github.com/strk/go-libravatar"
|
||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/bindata"
|
"github.com/go-gitea/gitea/modules/bindata"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/user"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func cleanCommand(cmd string) string {
|
func cleanCommand(cmd string) string {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/cron"
|
"github.com/go-gitea/gitea/modules/cron"
|
||||||
"github.com/gogits/gogs/modules/process"
|
"github.com/go-gitea/gitea/modules/process"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/auth/ldap"
|
"github.com/go-gitea/gitea/modules/auth/ldap"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers"
|
"github.com/go-gitea/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers"
|
"github.com/go-gitea/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,13 +9,13 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers"
|
"github.com/go-gitea/gitea/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,10 +7,10 @@ package admin
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {
|
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {
|
||||||
|
|
|
@ -7,10 +7,10 @@ package admin
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {
|
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {
|
||||||
|
|
|
@ -7,9 +7,9 @@ package admin
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/repo"
|
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,11 +7,11 @@ package admin
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/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) {
|
||||||
|
|
|
@ -12,14 +12,14 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/admin"
|
"github.com/go-gitea/gitea/routers/api/v1/admin"
|
||||||
"github.com/gogits/gogs/routers/api/v1/misc"
|
"github.com/go-gitea/gitea/routers/api/v1/misc"
|
||||||
"github.com/gogits/gogs/routers/api/v1/org"
|
"github.com/go-gitea/gitea/routers/api/v1/org"
|
||||||
"github.com/gogits/gogs/routers/api/v1/repo"
|
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/gitea/routers/api/v1/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func repoAssignment() macaron.Handler {
|
func repoAssignment() macaron.Handler {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/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/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ToCorrectPageSize makes sure page size is in allowed range.
|
// ToCorrectPageSize makes sure page size is in allowed range.
|
||||||
|
|
|
@ -7,8 +7,8 @@ package misc
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,10 +7,10 @@ package org
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
"github.com/gogits/gogs/routers/api/v1/user"
|
"github.com/go-gitea/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) {
|
||||||
|
|
|
@ -7,8 +7,8 @@ package org
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListTeams(ctx *context.APIContext) {
|
func ListTeams(ctx *context.APIContext) {
|
||||||
|
|
|
@ -7,8 +7,8 @@ package repo
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,8 +7,8 @@ package repo
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) {
|
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) {
|
||||||
|
|
|
@ -7,9 +7,9 @@ package repo
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/repo"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssues(ctx *context.APIContext) {
|
func ListIssues(ctx *context.APIContext) {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssueComments(ctx *context.APIContext) {
|
func ListIssueComments(ctx *context.APIContext) {
|
||||||
|
|
|
@ -7,8 +7,8 @@ package repo
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListIssueLabels(ctx *context.APIContext) {
|
func ListIssueLabels(ctx *context.APIContext) {
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func composeDeployKeysAPILink(repoPath string) string {
|
func composeDeployKeysAPILink(repoPath string) string {
|
||||||
|
|
|
@ -7,8 +7,8 @@ package repo
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListLabels(ctx *context.APIContext) {
|
func ListLabels(ctx *context.APIContext) {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ListMilestones(ctx *context.APIContext) {
|
func ListMilestones(ctx *context.APIContext) {
|
||||||
|
|
|
@ -9,12 +9,12 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,8 +7,8 @@ package user
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,10 +7,10 @@ package user
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/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
|
||||||
|
|
|
@ -7,8 +7,8 @@ package user
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func responseApiUsers(ctx *context.APIContext, users []*models.User) {
|
func responseApiUsers(ctx *context.APIContext, users []*models.User) {
|
||||||
|
|
|
@ -7,11 +7,11 @@ package user
|
||||||
import (
|
import (
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
"github.com/go-gitea/gitea/routers/api/v1/convert"
|
||||||
"github.com/gogits/gogs/routers/api/v1/repo"
|
"github.com/go-gitea/gitea/routers/api/v1/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {
|
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
api "github.com/gogits/go-gogs-client"
|
api "github.com/gogits/go-gogs-client"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/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/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/user"
|
"github.com/go-gitea/gitea/routers/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -19,18 +19,18 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/cron"
|
"github.com/go-gitea/gitea/modules/cron"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/mailer"
|
"github.com/go-gitea/gitea/modules/mailer"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/ssh"
|
"github.com/go-gitea/gitea/modules/ssh"
|
||||||
"github.com/gogits/gogs/modules/template/highlight"
|
"github.com/go-gitea/gitea/modules/template/highlight"
|
||||||
"github.com/gogits/gogs/modules/user"
|
"github.com/go-gitea/gitea/modules/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,11 +7,11 @@ package org
|
||||||
import (
|
import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
package org
|
package org
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -7,13 +7,13 @@ package org
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/routers/user"
|
"github.com/go-gitea/gitea/routers/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/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 {
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
"github.com/gogits/gogs/modules/template"
|
"github.com/go-gitea/gitea/modules/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -22,11 +22,11 @@ import (
|
||||||
|
|
||||||
git "github.com/gogits/git-module"
|
git "github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
func HTTP(ctx *context.Context) {
|
func HTTP(ctx *context.Context) {
|
||||||
|
|
|
@ -17,13 +17,13 @@ import (
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/Unknwon/paginater"
|
"github.com/Unknwon/paginater"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/markdown"
|
"github.com/go-gitea/gitea/modules/markdown"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -13,12 +13,12 @@ import (
|
||||||
|
|
||||||
"github.com/gogits/git-module"
|
"github.com/gogits/git-module"
|
||||||
|
|
||||||
"github.com/gogits/gogs/models"
|
"github.com/go-gitea/gitea/models"
|
||||||
"github.com/gogits/gogs/modules/auth"
|
"github.com/go-gitea/gitea/modules/auth"
|
||||||
"github.com/gogits/gogs/modules/base"
|
"github.com/go-gitea/gitea/modules/base"
|
||||||
"github.com/gogits/gogs/modules/context"
|
"github.com/go-gitea/gitea/modules/context"
|
||||||
"github.com/gogits/gogs/modules/log"
|
"github.com/go-gitea/gitea/modules/log"
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/go-gitea/gitea/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user