1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

Fix import path of go-sdk (#141)

From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
This commit is contained in:
Sandro Santilli 2016-11-11 10:39:44 +01:00 committed by Lunny Xiao
parent 96c9fef35f
commit a1c5f02444
61 changed files with 36 additions and 36 deletions

View file

@ -17,7 +17,7 @@ import (
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"

View file

@ -16,7 +16,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
gouuid "github.com/satori/go.uuid" gouuid "github.com/satori/go.uuid"
"code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/base"

View file

@ -12,7 +12,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markdown" "code.gitea.io/gitea/modules/markdown"

View file

@ -13,7 +13,7 @@ import (
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/base"
) )

View file

@ -18,7 +18,7 @@ import (
"code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/sync"
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
) )
var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)

View file

@ -29,7 +29,7 @@ import (
"code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/sync"
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
version "github.com/mcuadros/go-version" version "github.com/mcuadros/go-version"
ini "gopkg.in/ini.v1" ini "gopkg.in/ini.v1"
) )

View file

@ -25,7 +25,7 @@ import (
"github.com/nfnt/resize" "github.com/nfnt/resize"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/avatar" "code.gitea.io/gitea/modules/avatar"
"code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/base"

View file

@ -15,7 +15,7 @@ import (
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid" gouuid "github.com/satori/go.uuid"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/httplib" "code.gitea.io/gitea/modules/httplib"
"code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/log"

View file

@ -11,7 +11,7 @@ import (
"strings" "strings"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/setting"
) )

View file

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/repo" "code.gitea.io/gitea/routers/api/v1/repo"

View file

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -10,7 +10,7 @@ import (
"github.com/go-macaron/binding" "github.com/go-macaron/binding"
"gopkg.in/macaron.v1" "gopkg.in/macaron.v1"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth" "code.gitea.io/gitea/modules/auth"

View file

@ -10,7 +10,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
) )

View file

@ -5,7 +5,7 @@
package misc package misc
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/markdown" "code.gitea.io/gitea/modules/markdown"

View file

@ -5,7 +5,7 @@
package org package org
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package org package org
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert" "code.gitea.io/gitea/routers/api/v1/convert"

View file

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert" "code.gitea.io/gitea/routers/api/v1/convert"

View file

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -9,7 +9,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"strings" "strings"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -6,7 +6,7 @@ package repo
import ( import (
"time" "time"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -7,7 +7,7 @@ package repo
import ( import (
"fmt" "fmt"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -7,7 +7,7 @@ package repo
import ( import (
"time" "time"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -7,7 +7,7 @@ package repo
import ( import (
"path" "path"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth" "code.gitea.io/gitea/modules/auth"

View file

@ -5,7 +5,7 @@
package user package user
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package user package user
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package user package user
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -5,7 +5,7 @@
package user package user
import ( import (
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -7,7 +7,7 @@ package user
import ( import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"

View file

@ -13,7 +13,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
"code.gitea.io/git" "code.gitea.io/git"
api "code.gitea.io/go-sdk/gitea" api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth" "code.gitea.io/gitea/modules/auth"
@ -32,7 +32,7 @@ func Webhooks(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.settings.hooks") ctx.Data["Title"] = ctx.Tr("repo.settings.hooks")
ctx.Data["PageIsSettingsHooks"] = true ctx.Data["PageIsSettingsHooks"] = true
ctx.Data["BaseLink"] = ctx.Repo.RepoLink ctx.Data["BaseLink"] = ctx.Repo.RepoLink
ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/code.gitea.io/go-sdk/gitea") ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/code.gitea.io/sdk/gitea")
ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID) ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID)
if err != nil { if err != nil {

2
vendor/vendor.json vendored
View file

@ -46,7 +46,7 @@
}, },
{ {
"checksumSHA1": "/uhZZppDeb3Rbp3h8C0ALR3hdrA=", "checksumSHA1": "/uhZZppDeb3Rbp3h8C0ALR3hdrA=",
"path": "code.gitea.io/go-sdk/gitea", "path": "code.gitea.io/sdk/gitea",
"revision": "0a0a04ccf7a5e6b93d9a5507701635330cf4579c", "revision": "0a0a04ccf7a5e6b93d9a5507701635330cf4579c",
"revisionTime": "2016-11-07T15:06:50Z" "revisionTime": "2016-11-07T15:06:50Z"
}, },