Browse Source

change dependencies to kiliit client

pull/2039/head
Kim Lindhardt Madsen 9 years ago
parent
commit
c671377d4f
  1. 1
      .dockerignore
  2. 2
      .gopmfile
  3. 2
      cmd/web.go
  4. 2
      models/action.go
  5. 2
      models/webhook.go
  6. 2
      models/webhook_slack.go
  7. 2
      modules/base/base.go
  8. 6
      routers/api/v1/repo.go
  9. 2
      routers/api/v1/repo_commits.go
  10. 8
      routers/api/v1/repo_hooks.go
  11. 2
      routers/api/v1/repo_releases.go
  12. 2
      routers/api/v1/user.go
  13. 2
      routers/api/v1/user_app.go
  14. 2
      routers/repo/setting.go
  15. 2
      templates/repo/create.tmpl

1
.dockerignore

@ -18,3 +18,4 @@ scripts/*
.gopmfile
config.codekit
LICENSE
gogs.exe

2
.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 =

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

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

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

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

2
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

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

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

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

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

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

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

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

2
templates/repo/create.tmpl

@ -78,7 +78,7 @@
</div>
<div class="inline field">
<label>{{.i18n.Tr "repo.readme"}} <a target="_blank" href="https://github.com/gogits/go-gogs-client/wiki/Repositories#litte-notes-on-readme-template"><span class="octicon octicon-question"></span></a></label>
<label>{{.i18n.Tr "repo.readme"}} <a target="_blank" href="https://github.com/kiliit/go-gogs-client/wiki/Repositories#litte-notes-on-readme-template"><span class="octicon octicon-question"></span></a></label>
<div class="ui selection dropdown">
<input type="hidden" name="readme" value="{{.readme}}">
<div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div>

Loading…
Cancel
Save