Browse Source

Update import paths from github.com/go-gitea to code.gitea.io (#135)

- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
for-closed-social
Sandro Santilli 8 years ago
committed by Thibault Meyer
parent
commit
4247304f5a
166 changed files with 483 additions and 481 deletions
  1. +2
    -0
      .travis.yml
  2. +3
    -3
      Makefile
  3. +2
    -2
      cmd/admin.go
  4. +2
    -2
      cmd/dump.go
  5. +6
    -6
      cmd/serve.go
  6. +3
    -3
      cmd/update.go
  7. +16
    -16
      cmd/web.go
  8. +2
    -2
      main.go
  9. +1
    -1
      models/access.go
  10. +5
    -5
      models/action.go
  11. +3
    -3
      models/admin.go
  12. +6
    -6
      models/git_diff.go
  13. +4
    -4
      models/issue.go
  14. +3
    -3
      models/issue_comment.go
  15. +2
    -2
      models/issue_label.go
  16. +3
    -3
      models/issue_mail.go
  17. +3
    -3
      models/login_source.go
  18. +5
    -5
      models/mail.go
  19. +3
    -3
      models/migrations/migrations.go
  20. +2
    -2
      models/models.go
  21. +2
    -2
      models/org.go
  22. +6
    -6
      models/pull.go
  23. +2
    -2
      models/release.go
  24. +8
    -8
      models/repo.go
  25. +1
    -1
      models/repo_branch.go
  26. +4
    -4
      models/repo_editor.go
  27. +4
    -4
      models/repo_mirror.go
  28. +2
    -2
      models/repo_test.go
  29. +4
    -4
      models/ssh_key.go
  30. +1
    -1
      models/ssh_key_test.go
  31. +1
    -1
      models/token.go
  32. +2
    -2
      models/update.go
  33. +8
    -8
      models/user.go
  34. +5
    -5
      models/webhook.go
  35. +3
    -3
      models/webhook_slack.go
  36. +3
    -3
      models/wiki.go
  37. +4
    -4
      modules/auth/auth.go
  38. +1
    -1
      modules/auth/ldap/ldap.go
  39. +1
    -1
      modules/auth/repo_form.go
  40. +2
    -2
      modules/base/tool.go
  41. +1
    -1
      modules/base/tool_test.go
  42. +3
    -3
      modules/context/api.go
  43. +1
    -1
      modules/context/api_org.go
  44. +2
    -2
      modules/context/auth.go
  45. +5
    -5
      modules/context/context.go
  46. +2
    -2
      modules/context/org.go
  47. +4
    -4
      modules/context/repo.go
  48. +3
    -3
      modules/cron/cron.go
  49. +2
    -2
      modules/mailer/mailer.go
  50. +2
    -2
      modules/markdown/markdown.go
  51. +2
    -2
      modules/markdown/markdown_test.go
  52. +1
    -1
      modules/process/manager.go
  53. +3
    -3
      modules/setting/setting.go
  54. +3
    -3
      modules/ssh/ssh.go
  55. +1
    -1
      modules/template/highlight/highlight.go
  56. +5
    -5
      modules/template/template.go
  57. +6
    -6
      routers/admin/admin.go
  58. +7
    -7
      routers/admin/auths.go
  59. +5
    -5
      routers/admin/notice.go
  60. +5
    -5
      routers/admin/orgs.go
  61. +6
    -6
      routers/admin/repos.go
  62. +7
    -7
      routers/admin/users.go
  63. +5
    -5
      routers/api/v1/admin/org.go
  64. +2
    -2
      routers/api/v1/admin/org_repo.go
  65. +5
    -5
      routers/api/v1/admin/org_team.go
  66. +4
    -4
      routers/api/v1/admin/repo.go
  67. +6
    -6
      routers/api/v1/admin/user.go
  68. +10
    -10
      routers/api/v1/api.go
  69. +3
    -3
      routers/api/v1/convert/convert.go
  70. +1
    -1
      routers/api/v1/convert/utils.go
  71. +3
    -3
      routers/api/v1/misc/markdown.go
  72. +5
    -5
      routers/api/v1/org/org.go
  73. +3
    -3
      routers/api/v1/org/team.go
  74. +3
    -3
      routers/api/v1/repo/branch.go
  75. +3
    -3
      routers/api/v1/repo/collaborators.go
  76. +4
    -4
      routers/api/v1/repo/file.go
  77. +4
    -4
      routers/api/v1/repo/hook.go
  78. +4
    -4
      routers/api/v1/repo/issue.go
  79. +3
    -3
      routers/api/v1/repo/issue_comment.go
  80. +3
    -3
      routers/api/v1/repo/issue_label.go
  81. +5
    -5
      routers/api/v1/repo/key.go
  82. +3
    -3
      routers/api/v1/repo/label.go
  83. +3
    -3
      routers/api/v1/repo/milestone.go
  84. +8
    -8
      routers/api/v1/repo/repo.go
  85. +3
    -3
      routers/api/v1/user/app.go
  86. +5
    -5
      routers/api/v1/user/email.go
  87. +3
    -3
      routers/api/v1/user/follower.go
  88. +6
    -6
      routers/api/v1/user/key.go
  89. +3
    -3
      routers/api/v1/user/user.go
  90. +4
    -4
      routers/dev/template.go
  91. +5
    -5
      routers/home.go
  92. +14
    -14
      routers/install.go
  93. +5
    -5
      routers/org/members.go
  94. +6
    -6
      routers/org/org.go
  95. +7
    -7
      routers/org/setting.go
  96. +5
    -5
      routers/org/teams.go
  97. +2
    -2
      routers/repo/branch.go
  98. +5
    -5
      routers/repo/commit.go
  99. +3
    -3
      routers/repo/download.go
  100. +8
    -8
      routers/repo/editor.go

+ 2
- 0
.travis.yml View File

@ -1,5 +1,7 @@
language: go
go_import_path: code.gitea.io/gitea
go:
- 1.6
- 1.7

+ 3
- 3
Makefile View File

@ -2,7 +2,7 @@ DIST := dist
BIN := bin
EXECUTABLE := gitea
IMPORT := github.com/go-gitea/gitea
IMPORT := code.gitea.io/gitea
SHA := $(shell git rev-parse --short HEAD)
DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S %Z')
@ -11,8 +11,8 @@ BINDATA := $(shell find conf | sed 's/ /\\ /g')
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildTime=$(DATE)"
LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildGitHash=$(SHA)"
LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildTime=$(DATE)"
LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildGitHash=$(SHA)"
TARGETS ?= linux/*,darwin/*,windows/*
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)

+ 2
- 2
cmd/admin.go View File

@ -9,8 +9,8 @@ import (
"github.com/urfave/cli"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
)
var (

+ 2
- 2
cmd/dump.go View File

@ -13,8 +13,8 @@ import (
"time"
"github.com/Unknwon/cae/zip"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
"github.com/urfave/cli"
)

+ 6
- 6
cmd/serve.go View File

@ -14,12 +14,12 @@ import (
"time"
"github.com/Unknwon/com"
"github.com/go-gitea/git"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/httplib"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/httplib"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
gouuid "github.com/satori/go.uuid"
"github.com/urfave/cli"
)

+ 3
- 3
cmd/update.go View File

@ -9,9 +9,9 @@ import (
"github.com/urfave/cli"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
// CmdUpdate represents the available update sub-command.

+ 16
- 16
cmd/web.go View File

@ -15,21 +15,21 @@ import (
"path"
"strings"
"github.com/go-gitea/git"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/bindata"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/modules/template"
"github.com/go-gitea/gitea/routers"
"github.com/go-gitea/gitea/routers/admin"
apiv1 "github.com/go-gitea/gitea/routers/api/v1"
"github.com/go-gitea/gitea/routers/dev"
"github.com/go-gitea/gitea/routers/org"
"github.com/go-gitea/gitea/routers/repo"
"github.com/go-gitea/gitea/routers/user"
"code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/bindata"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/template"
"code.gitea.io/gitea/routers"
"code.gitea.io/gitea/routers/admin"
apiv1 "code.gitea.io/gitea/routers/api/v1"
"code.gitea.io/gitea/routers/dev"
"code.gitea.io/gitea/routers/org"
"code.gitea.io/gitea/routers/repo"
"code.gitea.io/gitea/routers/user"
"github.com/go-macaron/binding"
"github.com/go-macaron/cache"
"github.com/go-macaron/captcha"
@ -100,7 +100,7 @@ func checkVersion() {
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"},
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
{"github.com/go-gitea/git", git.Version, "0.4.1"},
{"code.gitea.io/git", git.Version, "0.4.1"},
}
for _, c := range checkers {
if !version.Compare(c.Version(), c.Expected, ">=") {

+ 2
- 2
main.go View File

@ -10,8 +10,8 @@ import (
"os"
"runtime"
"github.com/go-gitea/gitea/cmd"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/cmd"
"code.gitea.io/gitea/modules/setting"
"github.com/urfave/cli"
)

+ 1
- 1
models/access.go View File

@ -7,7 +7,7 @@ package models
import (
"fmt"
"github.com/go-gitea/gitea/modules/log"
"code.gitea.io/gitea/modules/log"
)
type AccessMode int

+ 5
- 5
models/action.go View File

@ -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

+ 3
- 3
models/admin.go View File

@ -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

+ 6
- 6
models/git_diff.go View File

@ -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"

+ 4
- 4
models/issue.go View File

@ -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 (

+ 3
- 3
models/issue_comment.go View File

@ -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.

+ 2
- 2
models/issue_label.go View File

@ -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})")

+ 3
- 3
models/issue_mail.go View File

@ -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 {

+ 3
- 3
models/login_source.go View File

@ -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

+ 5
- 5
models/mail.go View File

@ -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 (

+ 3
- 3
models/migrations/migrations.go View File

@ -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

+ 2
- 2
models/models.go View File

@ -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.

+ 2
- 2
models/org.go View File

@ -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 (

+ 6
- 6
models/pull.go View File

@ -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)

+ 2
- 2
models/release.go View File

@ -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.

+ 8
- 8
models/repo.go View File

@ -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"
)

+ 1
- 1
models/repo_branch.go View File

@ -5,7 +5,7 @@
package models
import (
"github.com/go-gitea/git"
"code.gitea.io/git"
)
type Branch struct {

+ 4
- 4
models/repo_editor.go View File

@ -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"
)
// ___________ .___.__ __ ___________.__.__

+ 4
- 4
models/repo_mirror.go View File

@ -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)

+ 2
- 2
models/repo_test.go View File

@ -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"
)

+ 4
- 4
models/ssh_key.go View File

@ -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 (

+ 1
- 1
models/ssh_key_test.go View File

@ -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() {

+ 1
- 1
models/token.go View File

@ -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.

+ 2
- 2
models/update.go View File

@ -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 {

+ 8
- 8
models/user.go View File

@ -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

+ 5
- 5
models/webhook.go View File

@ -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)

+ 3
- 3
models/webhook_slack.go View File

@ -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 {

+ 3
- 3
models/wiki.go View File

@ -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()

+ 4
- 4
modules/auth/auth.go View File

@ -15,10 +15,10 @@ import (
gouuid "github.com/satori/go.uuid"
"gopkg.in/macaron.v1"
"github.com/go-gitea/gitea/models"
"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/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
func IsAPIPath(url string) bool {

+ 1
- 1
modules/auth/ldap/ldap.go View File

@ -13,7 +13,7 @@ import (
"gopkg.in/ldap.v2"
"github.com/go-gitea/gitea/modules/log"
"code.gitea.io/gitea/modules/log"
)
type SecurityProtocol int

+ 1
- 1
modules/auth/repo_form.go View File

@ -9,7 +9,7 @@ import (
"strings"
"github.com/Unknwon/com"
"github.com/go-gitea/gitea/models"
"code.gitea.io/gitea/models"
"github.com/go-macaron/binding"
macaron "gopkg.in/macaron.v1"
)

+ 2
- 2
modules/base/tool.go View File

@ -24,8 +24,8 @@ import (
"github.com/Unknwon/com"
"github.com/Unknwon/i18n"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"github.com/gogits/chardet"
)

+ 1
- 1
modules/base/tool_test.go View File

@ -3,7 +3,7 @@ package base
import (
"testing"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/setting"
"github.com/stretchr/testify/assert"
"strk.kbt.io/projects/go/libravatar"
)

+ 3
- 3
modules/context/api.go View File

@ -9,9 +9,9 @@ import (
"strings"
"github.com/Unknwon/paginater"
"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"
macaron "gopkg.in/macaron.v1"
)

+ 1
- 1
modules/context/api_org.go View File

@ -5,7 +5,7 @@
package context
import (
"github.com/go-gitea/gitea/models"
"code.gitea.io/gitea/models"
)
type APIOrganization struct {

+ 2
- 2
modules/context/auth.go View File

@ -7,8 +7,8 @@ package context
import (
"net/url"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/setting"
"github.com/go-macaron/csrf"
macaron "gopkg.in/macaron.v1"
)

+ 5
- 5
modules/context/context.go View File

@ -12,11 +12,11 @@ import (
"strings"
"time"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"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/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"github.com/go-macaron/cache"
"github.com/go-macaron/csrf"
"github.com/go-macaron/i18n"

+ 2
- 2
modules/context/org.go View File

@ -7,8 +7,8 @@ package context
import (
"strings"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
macaron "gopkg.in/macaron.v1"
)

+ 4
- 4
modules/context/repo.go View File

@ -11,10 +11,10 @@ import (
"strings"
"github.com/Unknwon/com"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/git"
editorconfig "gopkg.in/editorconfig/editorconfig-core-go.v1"
macaron "gopkg.in/macaron.v1"
)

+ 3
- 3
modules/cron/cron.go View File

@ -9,9 +9,9 @@ import (
"github.com/gogits/cron"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
var c = cron.New()

+ 2
- 2
modules/mailer/mailer.go View File

@ -17,8 +17,8 @@ import (
"github.com/jaytaylor/html2text"
"gopkg.in/gomail.v2"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
type Message struct {

+ 2
- 2
modules/markdown/markdown.go View File

@ -18,8 +18,8 @@ import (
"github.com/russross/blackfriday"
"golang.org/x/net/html"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 2
- 2
modules/markdown/markdown_test.go View File

@ -4,8 +4,8 @@ import (
"bytes"
"testing"
. "github.com/go-gitea/gitea/modules/markdown"
"github.com/go-gitea/gitea/modules/setting"
. "code.gitea.io/gitea/modules/markdown"
"code.gitea.io/gitea/modules/setting"
"github.com/russross/blackfriday"
. "github.com/smartystreets/goconvey/convey"
)

+ 1
- 1
modules/process/manager.go View File

@ -11,7 +11,7 @@ import (
"os/exec"
"time"
"github.com/go-gitea/gitea/modules/log"
"code.gitea.io/gitea/modules/log"
)
var (

+ 3
- 3
modules/setting/setting.go View File

@ -25,9 +25,9 @@ import (
"gopkg.in/ini.v1"
"strk.kbt.io/projects/go/libravatar"
"github.com/go-gitea/gitea/modules/bindata"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/user"
"code.gitea.io/gitea/modules/bindata"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/user"
)
type Scheme string

+ 3
- 3
modules/ssh/ssh.go View File

@ -17,9 +17,9 @@ import (
"github.com/Unknwon/com"
"golang.org/x/crypto/ssh"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
func cleanCommand(cmd string) string {

+ 1
- 1
modules/template/highlight/highlight.go View File

@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/setting"
)
var (

+ 5
- 5
modules/template/template.go View File

@ -19,11 +19,11 @@ import (
"golang.org/x/text/transform"
"gopkg.in/editorconfig/editorconfig-core-go.v1"
"github.com/go-gitea/gitea/models"
"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/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markdown"
"code.gitea.io/gitea/modules/setting"
)
func NewFuncMap() []template.FuncMap {

+ 6
- 6
routers/admin/admin.go View File

@ -13,12 +13,12 @@ import (
"github.com/Unknwon/com"
"gopkg.in/macaron.v1"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/cron"
"github.com/go-gitea/gitea/modules/process"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/cron"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 7
- 7
routers/admin/auths.go View File

@ -10,13 +10,13 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/core"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/auth/ldap"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/auth/ldap"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 5
- 5
routers/admin/notice.go View File

@ -8,11 +8,11 @@ import (
"github.com/Unknwon/com"
"github.com/Unknwon/paginater"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 5
- 5
routers/admin/orgs.go View File

@ -5,11 +5,11 @@
package admin
import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers"
)
const (

+ 6
- 6
routers/admin/repos.go View File

@ -5,12 +5,12 @@
package admin
import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers"
)
const (

+ 7
- 7
routers/admin/users.go View File

@ -9,13 +9,13 @@ import (
"github.com/Unknwon/com"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers"
)
const (

+ 5
- 5
routers/api/v1/admin/org.go View File

@ -5,12 +5,12 @@
package admin
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"github.com/go-gitea/gitea/routers/api/v1/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/user"
)
// https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization

+ 2
- 2
routers/api/v1/admin/org_repo.go View File

@ -5,8 +5,8 @@
package admin
import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func GetRepositoryByParams(ctx *context.APIContext) *models.Repository {

+ 5
- 5
routers/api/v1/admin/org_team.go View File

@ -5,12 +5,12 @@
package admin
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"github.com/go-gitea/gitea/routers/api/v1/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/user"
)
func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) {

+ 4
- 4
routers/api/v1/admin/repo.go View File

@ -5,11 +5,11 @@
package admin
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/repo"
"github.com/go-gitea/gitea/routers/api/v1/user"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/repo"
"code.gitea.io/gitea/routers/api/v1/user"
)
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository

+ 6
- 6
routers/api/v1/admin/user.go View File

@ -5,13 +5,13 @@
package admin
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/api/v1/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/user"
)
func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) {

+ 10
- 10
routers/api/v1/api.go View File

@ -10,16 +10,16 @@ import (
"github.com/go-macaron/binding"
"gopkg.in/macaron.v1"
api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/admin"
"github.com/go-gitea/gitea/routers/api/v1/misc"
"github.com/go-gitea/gitea/routers/api/v1/org"
"github.com/go-gitea/gitea/routers/api/v1/repo"
"github.com/go-gitea/gitea/routers/api/v1/user"
api "code.gitea.io/go-sdk/gitea"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/admin"
"code.gitea.io/gitea/routers/api/v1/misc"
"code.gitea.io/gitea/routers/api/v1/org"
"code.gitea.io/gitea/routers/api/v1/repo"
"code.gitea.io/gitea/routers/api/v1/user"
)
func repoAssignment() macaron.Handler {

+ 3
- 3
routers/api/v1/convert/convert.go View File

@ -9,10 +9,10 @@ import (
"github.com/Unknwon/com"
"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/models"
"code.gitea.io/gitea/models"
)
func ToEmail(email *models.EmailAddress) *api.Email {

+ 1
- 1
routers/api/v1/convert/utils.go View File

@ -5,7 +5,7 @@
package convert
import (
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/modules/setting"
)
// ToCorrectPageSize makes sure page size is in allowed range.

+ 3
- 3
routers/api/v1/misc/markdown.go View File

@ -5,10 +5,10 @@
package misc
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/markdown"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/markdown"
)
// https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document

+ 5
- 5
routers/api/v1/org/org.go View File

@ -5,12 +5,12 @@
package org
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"github.com/go-gitea/gitea/routers/api/v1/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/user"
)
func listUserOrgs(ctx *context.APIContext, u *models.User, all bool) {

+ 3
- 3
routers/api/v1/org/team.go View File

@ -5,10 +5,10 @@
package org
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
)
func ListTeams(ctx *context.APIContext) {

+ 3
- 3
routers/api/v1/repo/branch.go View File

@ -5,10 +5,10 @@
package repo
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
)
// https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch

+ 3
- 3
routers/api/v1/repo/collaborators.go View File

@ -5,10 +5,10 @@
package repo
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) {

+ 4
- 4
routers/api/v1/repo/file.go View File

@ -5,11 +5,11 @@
package repo
import (
"github.com/go-gitea/git"
"code.gitea.io/git"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/repo"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/repo"
)
// https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content

+ 4
- 4
routers/api/v1/repo/hook.go View File

@ -9,11 +9,11 @@ import (
"github.com/Unknwon/com"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
)
// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks

+ 4
- 4
routers/api/v1/repo/issue.go View File

@ -8,11 +8,11 @@ import (
"fmt"
"strings"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
)
func ListIssues(ctx *context.APIContext) {

+ 3
- 3
routers/api/v1/repo/issue_comment.go View File

@ -6,10 +6,10 @@ package repo
import (
"time"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func ListIssueComments(ctx *context.APIContext) {

+ 3
- 3
routers/api/v1/repo/issue_label.go View File

@ -5,10 +5,10 @@
package repo
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func ListIssueLabels(ctx *context.APIContext) {

+ 5
- 5
routers/api/v1/repo/key.go View File

@ -7,12 +7,12 @@ package repo
import (
"fmt"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/convert"
)
func composeDeployKeysAPILink(repoPath string) string {

+ 3
- 3
routers/api/v1/repo/label.go View File

@ -5,10 +5,10 @@
package repo
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func ListLabels(ctx *context.APIContext) {

+ 3
- 3
routers/api/v1/repo/milestone.go View File

@ -7,10 +7,10 @@ package repo
import (
"time"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func ListMilestones(ctx *context.APIContext) {

+ 8
- 8
routers/api/v1/repo/repo.go View File

@ -7,14 +7,14 @@ package repo
import (
"path"
api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/api/v1/convert"
api "code.gitea.io/go-sdk/gitea"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/convert"
)
// https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories

+ 3
- 3
routers/api/v1/user/app.go View File

@ -5,10 +5,10 @@
package user
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
// https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user

+ 5
- 5
routers/api/v1/user/email.go View File

@ -5,12 +5,12 @@
package user
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/convert"
)
// https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user

+ 3
- 3
routers/api/v1/user/follower.go View File

@ -5,10 +5,10 @@
package user
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func responseApiUsers(ctx *context.APIContext, users []*models.User) {

+ 6
- 6
routers/api/v1/user/key.go View File

@ -5,13 +5,13 @@
package user
import (
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/api/v1/convert"
"github.com/go-gitea/gitea/routers/api/v1/repo"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/convert"
"code.gitea.io/gitea/routers/api/v1/repo"
)
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User {

+ 3
- 3
routers/api/v1/user/user.go View File

@ -7,10 +7,10 @@ package user
import (
"github.com/Unknwon/com"
api "github.com/go-gitea/go-sdk/gitea"
api "code.gitea.io/go-sdk/gitea"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
)
func Search(ctx *context.APIContext) {

+ 4
- 4
routers/dev/template.go View File

@ -5,10 +5,10 @@
package dev
import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
)
func TemplatePreview(ctx *context.Context) {

+ 5
- 5
routers/home.go View File

@ -9,11 +9,11 @@ import (
"github.com/Unknwon/paginater"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/user"
)
const (

+ 14
- 14
routers/install.go View File

@ -17,20 +17,20 @@ import (
"gopkg.in/ini.v1"
"gopkg.in/macaron.v1"
"github.com/go-gitea/git"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/cron"
"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"
"github.com/go-gitea/gitea/modules/ssh"
"github.com/go-gitea/gitea/modules/template/highlight"
"github.com/go-gitea/gitea/modules/user"
"code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/cron"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/mailer"
"code.gitea.io/gitea/modules/markdown"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/ssh"
"code.gitea.io/gitea/modules/template/highlight"
"code.gitea.io/gitea/modules/user"
)
const (

+ 5
- 5
routers/org/members.go View File

@ -7,11 +7,11 @@ package org
import (
"github.com/Unknwon/com"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 6
- 6
routers/org/org.go View File

@ -5,12 +5,12 @@
package org
import (
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 7
- 7
routers/org/setting.go View File

@ -7,13 +7,13 @@ package org
import (
"strings"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/routers/user"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/user"
)
const (

+ 5
- 5
routers/org/teams.go View File

@ -9,11 +9,11 @@ import (
"github.com/Unknwon/com"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
)
const (

+ 2
- 2
routers/repo/branch.go View File

@ -5,8 +5,8 @@
package repo
import (
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
)
const (

+ 5
- 5
routers/repo/commit.go View File

@ -9,11 +9,11 @@ import (
"path"
"github.com/Unknwon/paginater"
"github.com/go-gitea/git"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/setting"
"code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
)
const (

+ 3
- 3
routers/repo/download.go View File

@ -8,10 +8,10 @@ import (
"io"
"path"
"github.com/go-gitea/git"
"code.gitea.io/git"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
)
func ServeData(ctx *context.Context, name string, reader io.Reader) error {

+ 8
- 8
routers/repo/editor.go View File

@ -11,14 +11,14 @@ import (
"path"
"strings"
"github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth"
"github.com/go-gitea/gitea/modules/base"
"github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/log"
"github.com/go-gitea/gitea/modules/setting"
"github.com/go-gitea/gitea/modules/template"
"github.com/go-gitea/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/template"
"code.gitea.io/git"
)
const (

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save