diff options
Diffstat (limited to 'models')
37 files changed, 107 insertions, 107 deletions
diff --git a/models/access.go b/models/access.go index df3cd766..c10c9750 100644 --- a/models/access.go +++ b/models/access.go @@ -9,7 +9,7 @@ import ( log "gopkg.in/clog.v1" - "github.com/gogits/gogs/models/errors" + "github.com/gogs/gogs/models/errors" ) type AccessMode int diff --git a/models/action.go b/models/action.go index 288a1812..62c0e9b2 100644 --- a/models/action.go +++ b/models/action.go @@ -17,12 +17,12 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) type ActionType int diff --git a/models/admin.go b/models/admin.go index 10dd61da..51cf25d9 100644 --- a/models/admin.go +++ b/models/admin.go @@ -15,8 +15,8 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) type NoticeType int diff --git a/models/attachment.go b/models/attachment.go index fb4ec88d..4072e11e 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -15,7 +15,7 @@ import ( "github.com/go-xorm/xorm" gouuid "github.com/satori/go.uuid" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) // Attachment represent a attachment of issue/comment/release. diff --git a/models/comment.go b/models/comment.go index bcea2268..417e4037 100644 --- a/models/comment.go +++ b/models/comment.go @@ -13,10 +13,10 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/markup" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/markup" ) // CommentType defines whether a comment is just a simple comment, an action (like close) or a reference. diff --git a/models/git_diff.go b/models/git_diff.go index 3a47533f..cfaf5286 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -15,11 +15,11 @@ import ( "golang.org/x/net/html/charset" "golang.org/x/text/transform" - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/pkg/tool" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/template/highlight" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/template/highlight" + "github.com/gogs/gogs/pkg/tool" ) type DiffSection struct { diff --git a/models/git_diff_test.go b/models/git_diff_test.go index 74032371..285e5646 100644 --- a/models/git_diff_test.go +++ b/models/git_diff_test.go @@ -8,7 +8,7 @@ import ( "html/template" "testing" - "github.com/gogits/git-module" + "github.com/gogs/git-module" dmp "github.com/sergi/go-diff/diffmatchpatch" ) diff --git a/models/issue.go b/models/issue.go index c2c3d253..5888bb16 100644 --- a/models/issue.go +++ b/models/issue.go @@ -13,11 +13,11 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) var ( diff --git a/models/issue_label.go b/models/issue_label.go index 7a463a7a..5e4d1b05 100644 --- a/models/issue_label.go +++ b/models/issue_label.go @@ -13,9 +13,9 @@ import ( "github.com/go-xorm/xorm" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/pkg/tool" ) var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})") diff --git a/models/issue_mail.go b/models/issue_mail.go index 7ee38e63..b543c750 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -10,9 +10,9 @@ import ( "github.com/Unknwon/com" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/pkg/mailer" - "github.com/gogits/gogs/pkg/markup" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/mailer" + "github.com/gogs/gogs/pkg/markup" + "github.com/gogs/gogs/pkg/setting" ) func (issue *Issue) MailSubject() string { diff --git a/models/login_source.go b/models/login_source.go index 3a1162ec..436a0ffd 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -23,10 +23,10 @@ import ( log "gopkg.in/clog.v1" "gopkg.in/ini.v1" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/auth/ldap" - "github.com/gogits/gogs/pkg/auth/pam" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/auth/ldap" + "github.com/gogs/gogs/pkg/auth/pam" + "github.com/gogs/gogs/pkg/setting" ) type LoginType int diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 06747d38..432717c7 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -13,7 +13,7 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/pkg/tool" ) const _MIN_DB_VER = 10 @@ -98,9 +98,9 @@ You can migrate your older database using a previous release, then you can upgra Please save following instructions to somewhere and start working: - If you were using below 0.6.0 (e.g. 0.5.x), download last supported archive from following link: - https://github.com/gogits/gogs/releases/tag/v0.7.33 + https://github.com/gogs/gogs/releases/tag/v0.7.33 - If you were using below 0.7.0 (e.g. 0.6.x), download last supported archive from following link: - https://github.com/gogits/gogs/releases/tag/v0.9.141 + https://github.com/gogs/gogs/releases/tag/v0.9.141 Once finished downloading, diff --git a/models/migrations/v15.go b/models/migrations/v15.go index ebee4964..d6cccb1d 100644 --- a/models/migrations/v15.go +++ b/models/migrations/v15.go @@ -15,7 +15,7 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { diff --git a/models/migrations/v16.go b/models/migrations/v16.go index c5facc81..e95fe10a 100644 --- a/models/migrations/v16.go +++ b/models/migrations/v16.go @@ -12,9 +12,9 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) func updateRepositorySizes(x *xorm.Engine) (err error) { diff --git a/models/milestone.go b/models/milestone.go index 72fe5f63..1c14433e 100644 --- a/models/milestone.go +++ b/models/milestone.go @@ -11,9 +11,9 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) // Milestone represents a milestone of repository. diff --git a/models/mirror.go b/models/mirror.go index f48e8efa..76427fae 100644 --- a/models/mirror.go +++ b/models/mirror.go @@ -15,12 +15,12 @@ import ( log "gopkg.in/clog.v1" "gopkg.in/ini.v1" - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/sync" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/sync" ) var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength) diff --git a/models/models.go b/models/models.go index 6fcd2619..f33c32d0 100644 --- a/models/models.go +++ b/models/models.go @@ -23,8 +23,8 @@ import ( _ "github.com/lib/pq" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/models/migrations" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/models/migrations" + "github.com/gogs/gogs/pkg/setting" ) // Engine represents a XORM engine or session. diff --git a/models/org_team.go b/models/org_team.go index 3e8016e8..6dd3876f 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -31,7 +31,7 @@ type Team struct { func (t *Team) AfterSet(colName string, _ xorm.Cell) { switch colName { case "num_repos": - // LEGACY [1.0]: this is backward compatibility bug fix for https://github.com/gogits/gogs/issues/3671 + // LEGACY [1.0]: this is backward compatibility bug fix for https://github.com/gogs/gogs/issues/3671 if t.NumRepos < 0 { t.NumRepos = 0 } diff --git a/models/pull.go b/models/pull.go index de188c09..b4524f16 100644 --- a/models/pull.go +++ b/models/pull.go @@ -15,13 +15,13 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/sync" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/sync" ) var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) diff --git a/models/release.go b/models/release.go index d8334554..2c350664 100644 --- a/models/release.go +++ b/models/release.go @@ -13,11 +13,11 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/process" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/process" ) // Release represents a release of repository. diff --git a/models/repo.go b/models/repo.go index 827c9aaf..1cba9d4b 100644 --- a/models/repo.go +++ b/models/repo.go @@ -23,15 +23,15 @@ import ( log "gopkg.in/clog.v1" "gopkg.in/ini.v1" - git "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" - - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/bindata" - "github.com/gogits/gogs/pkg/markup" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/sync" + git "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" + + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/bindata" + "github.com/gogs/gogs/pkg/markup" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/sync" ) var repoWorkingPool = sync.NewExclusivePool() diff --git a/models/repo_branch.go b/models/repo_branch.go index 6439faf0..1d98fd12 100644 --- a/models/repo_branch.go +++ b/models/repo_branch.go @@ -9,10 +9,10 @@ import ( "strings" "github.com/Unknwon/com" - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/tool" ) type Branch struct { diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index f3babd42..107e1c5a 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -9,7 +9,7 @@ import ( log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" ) // Collaboration represent the relation between an individual and a repository. diff --git a/models/repo_editor.go b/models/repo_editor.go index ebf25ecd..27683ade 100644 --- a/models/repo_editor.go +++ b/models/repo_editor.go @@ -19,11 +19,11 @@ import ( gouuid "github.com/satori/go.uuid" log "gopkg.in/clog.v1" - git "github.com/gogits/git-module" + git "github.com/gogs/git-module" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/setting" ) // ___________ .___.__ __ ___________.__.__ diff --git a/models/repo_test.go b/models/repo_test.go index 76025a4c..2d7f9c38 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -5,8 +5,8 @@ import ( . "github.com/smartystreets/goconvey/convey" - . "github.com/gogits/gogs/models" - "github.com/gogits/gogs/pkg/markup" + . "github.com/gogs/gogs/models" + "github.com/gogs/gogs/pkg/markup" ) func TestRepo(t *testing.T) { diff --git a/models/ssh_key.go b/models/ssh_key.go index 350c5f75..7caf033e 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -23,9 +23,9 @@ import ( "golang.org/x/crypto/ssh" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) const ( diff --git a/models/ssh_key_test.go b/models/ssh_key_test.go index 537f16b0..02086ac4 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/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) func init() { diff --git a/models/token.go b/models/token.go index 940d76f4..7cac1a3f 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/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/pkg/tool" ) // AccessToken represents a personal access token. diff --git a/models/two_factor.go b/models/two_factor.go index 60d26147..2de312eb 100644 --- a/models/two_factor.go +++ b/models/two_factor.go @@ -15,9 +15,9 @@ import ( "github.com/pquerna/otp/totp" log "gopkg.in/clog.v1" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) // TwoFactor represents a two-factor authentication token. diff --git a/models/update.go b/models/update.go index 95122fcc..db01392c 100644 --- a/models/update.go +++ b/models/update.go @@ -10,7 +10,7 @@ import ( "os/exec" "strings" - git "github.com/gogits/git-module" + git "github.com/gogs/git-module" ) // CommitToPushCommit transforms a git.Commit to PushCommit type. diff --git a/models/user.go b/models/user.go index f53b48e7..562437cd 100644 --- a/models/user.go +++ b/models/user.go @@ -26,13 +26,13 @@ import ( "golang.org/x/crypto/pbkdf2" log "gopkg.in/clog.v1" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/avatar" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/avatar" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) type UserType int diff --git a/models/user_mail.go b/models/user_mail.go index a5911aa7..ff99b2a7 100644 --- a/models/user_mail.go +++ b/models/user_mail.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "github.com/gogits/gogs/models/errors" + "github.com/gogs/gogs/models/errors" ) // EmailAdresses is the list of all email addresses of a user. Can contain the diff --git a/models/webhook.go b/models/webhook.go index c37a1a47..4008d6b9 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -19,12 +19,12 @@ import ( gouuid "github.com/satori/go.uuid" log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/httplib" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/sync" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/httplib" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/sync" ) var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength) diff --git a/models/webhook_dingtalk.go b/models/webhook_dingtalk.go index 735cddde..e910ede7 100644 --- a/models/webhook_dingtalk.go +++ b/models/webhook_dingtalk.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" ) const ( diff --git a/models/webhook_discord.go b/models/webhook_discord.go index 9cacc837..952d093a 100644 --- a/models/webhook_discord.go +++ b/models/webhook_discord.go @@ -10,10 +10,10 @@ import ( "strconv" "strings" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) type DiscordEmbedFooterObject struct { diff --git a/models/webhook_slack.go b/models/webhook_slack.go index 76954795..be75303e 100644 --- a/models/webhook_slack.go +++ b/models/webhook_slack.go @@ -9,10 +9,10 @@ import ( "fmt" "strings" - "github.com/gogits/git-module" - api "github.com/gogits/go-gogs-client" + "github.com/gogs/git-module" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/setting" ) type SlackMeta struct { diff --git a/models/wiki.go b/models/wiki.go index 7e085d0a..882ccdf0 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -15,10 +15,10 @@ import ( "github.com/Unknwon/com" - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/sync" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/sync" ) var wikiWorkingPool = sync.NewExclusivePool() |