diff --git a/.dockerignore b/.dockerignore index 8822b3436..74d469b5f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,3 +18,4 @@ scripts/* .gopmfile config.codekit LICENSE +gogs.exe diff --git a/.gopmfile b/.gopmfile index 2cae07dca..2dcf00a41 100644 --- a/.gopmfile +++ b/.gopmfile @@ -12,7 +12,7 @@ github.com/go-sql-driver/mysql = commit:527bcd55aa github.com/go-xorm/core = commit:3e10003353 github.com/go-xorm/xorm = commit:803f6db50c github.com/gogits/chardet = commit:2404f77725 -github.com/gogits/go-gogs-client = commit:519eee0af0 +github.com/kiliit/go-gogs-client github.com/issue9/identicon = github.com/lib/pq = commit:b269bd035a github.com/go-macaron/binding = diff --git a/cmd/web.go b/cmd/web.go index af396e7c9..c4712c59b 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -29,7 +29,7 @@ import ( "gopkg.in/ini.v1" "gopkg.in/macaron.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/auth" diff --git a/models/action.go b/models/action.go index e38cf593b..97f2c921d 100644 --- a/models/action.go +++ b/models/action.go @@ -16,7 +16,7 @@ import ( "github.com/go-xorm/xorm" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/git" diff --git a/models/webhook.go b/models/webhook.go index 75380d17c..9280ca40f 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -15,7 +15,7 @@ import ( "github.com/go-xorm/xorm" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/modules/httplib" "github.com/gogits/gogs/modules/log" diff --git a/models/webhook_slack.go b/models/webhook_slack.go index 45766a51b..a44f134a1 100644 --- a/models/webhook_slack.go +++ b/models/webhook_slack.go @@ -10,7 +10,7 @@ import ( "fmt" "strings" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/modules/git" ) diff --git a/modules/base/base.go b/modules/base/base.go index 864ede055..48bd73a35 100644 --- a/modules/base/base.go +++ b/modules/base/base.go @@ -4,7 +4,7 @@ package base -const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki" +const DOC_URL = "https://github.com/kiliit/go-gogs-client/wiki" type ( TplName string diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go index b36e94504..0c17246ec 100644 --- a/routers/api/v1/repo.go +++ b/routers/api/v1/repo.go @@ -11,7 +11,7 @@ import ( "github.com/Unknwon/com" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/auth" @@ -99,7 +99,7 @@ func SearchRepos(ctx *middleware.Context) { }) } -// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories +// https://github.com/kiliit/go-gogs-client/wiki/Repositories#list-your-repositories func ListMyRepos(ctx *middleware.Context) { ownRepos, err := models.GetRepositories(ctx.User.Id, true) if err != nil { @@ -165,7 +165,7 @@ func GetRepo(ctx *middleware.Context) { ctx.JSON(200, ToApiRepository(ctx.Repo.Repository.Owner, ctx.Repo.Repository, api.Permission{})) } -// https://github.com/gogits/go-gogs-client/wiki/Repositories#create +// https://github.com/kiliit/go-gogs-client/wiki/Repositories#create func CreateRepo(ctx *middleware.Context, opt api.CreateRepoOption) { // Shouldn't reach this condition, but just in case. if ctx.User.IsOrganization() { diff --git a/routers/api/v1/repo_commits.go b/routers/api/v1/repo_commits.go index d7f7057a7..6b6d25e17 100644 --- a/routers/api/v1/repo_commits.go +++ b/routers/api/v1/repo_commits.go @@ -5,7 +5,7 @@ package v1 import ( - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/git" diff --git a/routers/api/v1/repo_hooks.go b/routers/api/v1/repo_hooks.go index 91547cf16..403ce764d 100644 --- a/routers/api/v1/repo_hooks.go +++ b/routers/api/v1/repo_hooks.go @@ -10,7 +10,7 @@ import ( "github.com/Unknwon/com" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/middleware" @@ -42,7 +42,7 @@ func ToApiHook(repoLink string, w *models.Webhook) *api.Hook { } } -// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks +// https://github.com/kiliit/go-gogs-client/wiki/Repositories#list-hooks func ListRepoHooks(ctx *middleware.Context) { hooks, err := models.GetWebhooksByRepoId(ctx.Repo.Repository.ID) if err != nil { @@ -58,7 +58,7 @@ func ListRepoHooks(ctx *middleware.Context) { ctx.JSON(200, &apiHooks) } -// https://github.com/gogits/go-gogs-client/wiki/Repositories#create-a-hook +// https://github.com/kiliit/go-gogs-client/wiki/Repositories#create-a-hook func CreateRepoHook(ctx *middleware.Context, form api.CreateHookOption) { if !models.IsValidHookTaskType(form.Type) { ctx.APIError(422, "", "Invalid hook type") @@ -123,7 +123,7 @@ func CreateRepoHook(ctx *middleware.Context, form api.CreateHookOption) { ctx.JSON(201, ToApiHook(ctx.Repo.RepoLink, w)) } -// https://github.com/gogits/go-gogs-client/wiki/Repositories#edit-a-hook +// https://github.com/kiliit/go-gogs-client/wiki/Repositories#edit-a-hook func EditRepoHook(ctx *middleware.Context, form api.EditHookOption) { w, err := models.GetWebhookByID(ctx.ParamsInt64(":id")) if err != nil { diff --git a/routers/api/v1/repo_releases.go b/routers/api/v1/repo_releases.go index 56d6f4a81..d93bfd908 100644 --- a/routers/api/v1/repo_releases.go +++ b/routers/api/v1/repo_releases.go @@ -7,7 +7,7 @@ package v1 import ( "errors" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" base "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/log" diff --git a/routers/api/v1/user.go b/routers/api/v1/user.go index 797b1a707..3cba4a36c 100644 --- a/routers/api/v1/user.go +++ b/routers/api/v1/user.go @@ -7,7 +7,7 @@ package v1 import ( "github.com/Unknwon/com" - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/middleware" diff --git a/routers/api/v1/user_app.go b/routers/api/v1/user_app.go index 590d187e5..f01d61187 100644 --- a/routers/api/v1/user_app.go +++ b/routers/api/v1/user_app.go @@ -5,7 +5,7 @@ package v1 import ( - api "github.com/gogits/go-gogs-client" + api "github.com/kiliit/go-gogs-client" "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/middleware" diff --git a/routers/repo/setting.go b/routers/repo/setting.go index a9930e784..cea6aaeb5 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -244,7 +244,7 @@ func Webhooks(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("repo.settings.hooks") ctx.Data["PageIsSettingsHooks"] = true ctx.Data["BaseLink"] = ctx.Repo.RepoLink - ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://github.com/gogits/go-gogs-client/wiki/Repositories---Webhooks") + ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://github.com/kiliit/go-gogs-client/wiki/Repositories---Webhooks") ws, err := models.GetWebhooksByRepoId(ctx.Repo.Repository.ID) if err != nil { diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index c2d1c4601..9939c3787 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -78,7 +78,7 @@