summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/access.go2
-rw-r--r--models/action.go10
-rw-r--r--models/admin.go6
-rw-r--r--models/git_diff.go12
-rw-r--r--models/issue.go8
-rw-r--r--models/issue_comment.go6
-rw-r--r--models/issue_label.go4
-rw-r--r--models/issue_mail.go6
-rw-r--r--models/login_source.go6
-rw-r--r--models/mail.go10
-rw-r--r--models/migrations/migrations.go6
-rw-r--r--models/models.go4
-rw-r--r--models/org.go4
-rw-r--r--models/pull.go12
-rw-r--r--models/release.go4
-rw-r--r--models/repo.go16
-rw-r--r--models/repo_branch.go2
-rw-r--r--models/repo_editor.go8
-rw-r--r--models/repo_mirror.go8
-rw-r--r--models/repo_test.go4
-rw-r--r--models/ssh_key.go8
-rw-r--r--models/ssh_key_test.go2
-rw-r--r--models/token.go2
-rw-r--r--models/update.go4
-rw-r--r--models/user.go16
-rw-r--r--models/webhook.go10
-rw-r--r--models/webhook_slack.go6
-rw-r--r--models/wiki.go6
28 files changed, 96 insertions, 96 deletions
diff --git a/models/access.go b/models/access.go
index fa3642cf53..c6679af7fa 100644
--- a/models/access.go
+++ b/models/access.go
@@ -7,7 +7,7 @@ package models
import (
"fmt"
- "github.com/go-gitea/gitea/modules/log"
+ "code.gitea.io/gitea/modules/log"
)
type AccessMode int
diff --git a/models/action.go b/models/action.go
index 96dd2d7680..cf7a9a4904 100644
--- a/models/action.go
+++ b/models/action.go
@@ -16,12 +16,12 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
- "github.com/go-gitea/git"
- api "github.com/go-gitea/go-sdk/gitea"
+ "code.gitea.io/git"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
)
type ActionType int
diff --git a/models/admin.go b/models/admin.go
index dab92863a5..12dd148688 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -14,9 +14,9 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
)
type NoticeType int
diff --git a/models/git_diff.go b/models/git_diff.go
index 8c1b47ab60..7aff1f53e1 100644
--- a/models/git_diff.go
+++ b/models/git_diff.go
@@ -17,12 +17,12 @@ import (
"strings"
"github.com/Unknwon/com"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/template/highlight"
- "github.com/go-gitea/git"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/template/highlight"
+ "code.gitea.io/git"
"github.com/sergi/go-diff/diffmatchpatch"
"golang.org/x/net/html/charset"
"golang.org/x/text/transform"
diff --git a/models/issue.go b/models/issue.go
index 0f63fa6923..19473cd7dd 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -16,12 +16,12 @@ import (
"github.com/Unknwon/com"
"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"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
)
var (
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 47246701a0..e902332e7a 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -12,10 +12,10 @@ import (
"github.com/Unknwon/com"
"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"
- "github.com/go-gitea/gitea/modules/markdown"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/markdown"
)
// CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
diff --git a/models/issue_label.go b/models/issue_label.go
index 24d6bcac75..65ef077bf0 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -13,9 +13,9 @@ import (
"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})")
diff --git a/models/issue_mail.go b/models/issue_mail.go
index 8a4945c645..424c0ca1ee 100644
--- a/models/issue_mail.go
+++ b/models/issue_mail.go
@@ -9,9 +9,9 @@ import (
"github.com/Unknwon/com"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/markdown"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/markdown"
+ "code.gitea.io/gitea/modules/setting"
)
func (issue *Issue) MailSubject() string {
diff --git a/models/login_source.go b/models/login_source.go
index ce5f5bddbe..05f34030dd 100644
--- a/models/login_source.go
+++ b/models/login_source.go
@@ -19,9 +19,9 @@ import (
"github.com/go-xorm/core"
"github.com/go-xorm/xorm"
- "github.com/go-gitea/gitea/modules/auth/ldap"
- "github.com/go-gitea/gitea/modules/auth/pam"
- "github.com/go-gitea/gitea/modules/log"
+ "code.gitea.io/gitea/modules/auth/ldap"
+ "code.gitea.io/gitea/modules/auth/pam"
+ "code.gitea.io/gitea/modules/log"
)
type LoginType int
diff --git a/models/mail.go b/models/mail.go
index 04e571ae53..5d34e29ec5 100644
--- a/models/mail.go
+++ b/models/mail.go
@@ -12,11 +12,11 @@ import (
"gopkg.in/gomail.v2"
"gopkg.in/macaron.v1"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/mailer"
- "github.com/go-gitea/gitea/modules/markdown"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/mailer"
+ "code.gitea.io/gitea/modules/markdown"
+ "code.gitea.io/gitea/modules/setting"
)
const (
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 7b4c6ec53e..e69cf993b7 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -20,9 +20,9 @@ import (
gouuid "github.com/satori/go.uuid"
"gopkg.in/ini.v1"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
)
const _MIN_DB_VER = 4
diff --git a/models/models.go b/models/models.go
index 7714174707..a95468e036 100644
--- a/models/models.go
+++ b/models/models.go
@@ -18,8 +18,8 @@ import (
"github.com/go-xorm/xorm"
_ "github.com/lib/pq"
- "github.com/go-gitea/gitea/models/migrations"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/models/migrations"
+ "code.gitea.io/gitea/modules/setting"
)
// Engine represents a xorm engine or session.
diff --git a/models/org.go b/models/org.go
index bf4d619999..4b0a222c12 100644
--- a/models/org.go
+++ b/models/org.go
@@ -12,8 +12,8 @@ import (
"github.com/go-xorm/xorm"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
)
var (
diff --git a/models/pull.go b/models/pull.go
index 2437c040d8..bb2f82bef6 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -12,13 +12,13 @@ import (
"time"
"github.com/Unknwon/com"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/sync"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/sync"
"github.com/go-xorm/xorm"
- "github.com/go-gitea/git"
- api "github.com/go-gitea/go-sdk/gitea"
+ "code.gitea.io/git"
+ api "code.gitea.io/go-sdk/gitea"
)
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)
diff --git a/models/release.go b/models/release.go
index 4841ae7ba3..e1f27fc4d8 100644
--- a/models/release.go
+++ b/models/release.go
@@ -12,9 +12,9 @@ import (
"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.
diff --git a/models/repo.go b/models/repo.go
index edf5de9329..7dc0b94303 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -21,15 +21,15 @@ import (
"github.com/Unknwon/cae/zip"
"github.com/Unknwon/com"
- "github.com/go-gitea/gitea/modules/bindata"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/markdown"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/sync"
+ "code.gitea.io/gitea/modules/bindata"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/markdown"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/sync"
"github.com/go-xorm/xorm"
- "github.com/go-gitea/git"
- api "github.com/go-gitea/go-sdk/gitea"
+ "code.gitea.io/git"
+ api "code.gitea.io/go-sdk/gitea"
version "github.com/mcuadros/go-version"
ini "gopkg.in/ini.v1"
)
diff --git a/models/repo_branch.go b/models/repo_branch.go
index 4e04c21815..075e590fdf 100644
--- a/models/repo_branch.go
+++ b/models/repo_branch.go
@@ -5,7 +5,7 @@
package models
import (
- "github.com/go-gitea/git"
+ "code.gitea.io/git"
)
type Branch struct {
diff --git a/models/repo_editor.go b/models/repo_editor.go
index ecbe029da1..7e1a2e5952 100644
--- a/models/repo_editor.go
+++ b/models/repo_editor.go
@@ -18,11 +18,11 @@ import (
"github.com/Unknwon/com"
gouuid "github.com/satori/go.uuid"
- "github.com/go-gitea/git"
+ "code.gitea.io/git"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
)
// ___________ .___.__ __ ___________.__.__
diff --git a/models/repo_mirror.go b/models/repo_mirror.go
index c598f82bf8..077b697b97 100644
--- a/models/repo_mirror.go
+++ b/models/repo_mirror.go
@@ -13,10 +13,10 @@ import (
"github.com/go-xorm/xorm"
"gopkg.in/ini.v1"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/sync"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/sync"
)
var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
diff --git a/models/repo_test.go b/models/repo_test.go
index 954f4db3bf..fdf3a07baf 100644
--- a/models/repo_test.go
+++ b/models/repo_test.go
@@ -3,8 +3,8 @@ package models_test
import (
"testing"
- . "github.com/go-gitea/gitea/models"
- "github.com/go-gitea/gitea/modules/markdown"
+ . "code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/markdown"
. "github.com/smartystreets/goconvey/convey"
)
diff --git a/models/ssh_key.go b/models/ssh_key.go
index 932361c00c..0753ae67b4 100644
--- a/models/ssh_key.go
+++ b/models/ssh_key.go
@@ -22,10 +22,10 @@ import (
"github.com/go-xorm/xorm"
"golang.org/x/crypto/ssh"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/process"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/process"
+ "code.gitea.io/gitea/modules/setting"
)
const (
diff --git a/models/ssh_key_test.go b/models/ssh_key_test.go
index e748f381c3..890951a2b7 100644
--- a/models/ssh_key_test.go
+++ b/models/ssh_key_test.go
@@ -11,7 +11,7 @@ import (
. "github.com/smartystreets/goconvey/convey"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/setting"
)
func init() {
diff --git a/models/token.go b/models/token.go
index 5d9053cc20..c97dfb6226 100644
--- a/models/token.go
+++ b/models/token.go
@@ -10,7 +10,7 @@ import (
"github.com/go-xorm/xorm"
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.
diff --git a/models/update.go b/models/update.go
index e4d6d0d7d4..41aa98e0a3 100644
--- a/models/update.go
+++ b/models/update.go
@@ -10,9 +10,9 @@ import (
"os/exec"
"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 {
diff --git a/models/user.go b/models/user.go
index 0dcd15c30b..db538ff2cb 100644
--- a/models/user.go
+++ b/models/user.go
@@ -24,14 +24,14 @@ import (
"github.com/go-xorm/xorm"
"github.com/nfnt/resize"
- "github.com/go-gitea/git"
- api "github.com/go-gitea/go-sdk/gitea"
-
- "github.com/go-gitea/gitea/modules/avatar"
- "github.com/go-gitea/gitea/modules/base"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/markdown"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/git"
+ api "code.gitea.io/go-sdk/gitea"
+
+ "code.gitea.io/gitea/modules/avatar"
+ "code.gitea.io/gitea/modules/base"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/markdown"
+ "code.gitea.io/gitea/modules/setting"
)
type UserType int
diff --git a/models/webhook.go b/models/webhook.go
index eb37338d2c..9ca217640b 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -15,12 +15,12 @@ import (
"github.com/go-xorm/xorm"
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"
- "github.com/go-gitea/gitea/modules/log"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/sync"
+ "code.gitea.io/gitea/modules/httplib"
+ "code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/sync"
)
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
diff --git a/models/webhook_slack.go b/models/webhook_slack.go
index 51b3373e8c..a93efab725 100644
--- a/models/webhook_slack.go
+++ b/models/webhook_slack.go
@@ -10,10 +10,10 @@ import (
"fmt"
"strings"
- "github.com/go-gitea/git"
- api "github.com/go-gitea/go-sdk/gitea"
+ "code.gitea.io/git"
+ api "code.gitea.io/go-sdk/gitea"
- "github.com/go-gitea/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/setting"
)
type SlackMeta struct {
diff --git a/models/wiki.go b/models/wiki.go
index 77b2ae26ae..9e9f1b6664 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -15,10 +15,10 @@ import (
"github.com/Unknwon/com"
- "github.com/go-gitea/git"
+ "code.gitea.io/git"
- "github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/gitea/modules/sync"
+ "code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/sync"
)
var wikiWorkingPool = sync.NewExclusivePool()