diff options
Diffstat (limited to 'routers/api/v1')
27 files changed, 110 insertions, 110 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index b764f7a813..5a50e66eea 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -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 diff --git a/routers/api/v1/admin/org_repo.go b/routers/api/v1/admin/org_repo.go index 01835fa2ab..c7014dd7c0 100644 --- a/routers/api/v1/admin/org_repo.go +++ b/routers/api/v1/admin/org_repo.go @@ -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 { diff --git a/routers/api/v1/admin/org_team.go b/routers/api/v1/admin/org_team.go index 2058ea0021..3b5438b720 100644 --- a/routers/api/v1/admin/org_team.go +++ b/routers/api/v1/admin/org_team.go @@ -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) { diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index 1ddf65c5ea..d6c59346d8 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -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 diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 5e9f763eeb..91bf57079f 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -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) { diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index e8db9cb8e4..0accf71111 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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 { diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go index a43e00077a..59431e92fa 100644 --- a/routers/api/v1/convert/convert.go +++ b/routers/api/v1/convert/convert.go @@ -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 { diff --git a/routers/api/v1/convert/utils.go b/routers/api/v1/convert/utils.go index 0062157c84..66fb21be67 100644 --- a/routers/api/v1/convert/utils.go +++ b/routers/api/v1/convert/utils.go @@ -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. diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index 296f7fabab..5007803899 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.go @@ -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 diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 98dc74ae7c..d568b89e27 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -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) { diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index bb3c8f6fcb..88553786a8 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -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) { diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index 06f51bc263..c6fabda6f3 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -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 diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index 13cba48141..86d5924b36 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.go @@ -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) { diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index fcf2e0573b..96948ea459 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -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 diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go index 32fe411556..fc0789a06e 100644 --- a/routers/api/v1/repo/hook.go +++ b/routers/api/v1/repo/hook.go @@ -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 diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 4e5369961f..d1d9b47d18 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -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) { diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index 11e236144c..cf1ca0a029 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -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) { diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index 8f56afd61b..c3648e05d0 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.go @@ -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) { diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index adac6a6e69..228fde529f 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -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 { diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 1e4f78f59e..f3d632ea44 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -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) { diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go index 4e4b40ae9f..e80fcf8b39 100644 --- a/routers/api/v1/repo/milestone.go +++ b/routers/api/v1/repo/milestone.go @@ -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) { diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 3aa8995c76..08c246a998 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -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 diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index 0e8081f5f4..a822bd3185 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -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 diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 1667ee5984..e5519e7e2f 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -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 diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 661bdcbcef..c738dc9a73 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -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) { diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 316ebb65c9..35f176a24c 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -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 { diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 92ad7c81e5..7fa5126773 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -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) { |