Merge pull request #108 from go-gitea/go-sdk

Replaced gogits go-gogs-client with go-sdk
tokarchuk/v1.17
Thomas Boerger 8 years ago committed by GitHub
commit 5d430c9e68
  1. 3
      .gitignore
  2. 2
      README.md
  3. 2
      cmd/web.go
  4. 2
      models/action.go
  5. 2
      models/issue.go
  6. 2
      models/issue_comment.go
  7. 2
      models/issue_label.go
  8. 2
      models/pull.go
  9. 2
      models/repo.go
  10. 2
      models/user.go
  11. 2
      models/webhook.go
  12. 2
      models/webhook_slack.go
  13. 2
      modules/base/base.go
  14. 2
      modules/context/api.go
  15. 2
      routers/api/v1/admin/org.go
  16. 2
      routers/api/v1/admin/org_team.go
  17. 2
      routers/api/v1/admin/repo.go
  18. 2
      routers/api/v1/admin/user.go
  19. 2
      routers/api/v1/api.go
  20. 2
      routers/api/v1/convert/convert.go
  21. 2
      routers/api/v1/misc/markdown.go
  22. 2
      routers/api/v1/org/org.go
  23. 2
      routers/api/v1/org/team.go
  24. 2
      routers/api/v1/repo/branch.go
  25. 2
      routers/api/v1/repo/collaborators.go
  26. 2
      routers/api/v1/repo/hook.go
  27. 2
      routers/api/v1/repo/issue.go
  28. 2
      routers/api/v1/repo/issue_comment.go
  29. 2
      routers/api/v1/repo/issue_label.go
  30. 2
      routers/api/v1/repo/key.go
  31. 2
      routers/api/v1/repo/label.go
  32. 2
      routers/api/v1/repo/milestone.go
  33. 2
      routers/api/v1/repo/repo.go
  34. 2
      routers/api/v1/user/app.go
  35. 2
      routers/api/v1/user/email.go
  36. 2
      routers/api/v1/user/follower.go
  37. 2
      routers/api/v1/user/key.go
  38. 2
      routers/api/v1/user/user.go
  39. 4
      routers/repo/webhook.go
  40. 2
      templates/repo/create.tmpl
  41. 14
      vendor/github.com/go-gitea/go-sdk/LICENSE
  42. 2
      vendor/github.com/go-gitea/go-sdk/gitea/admin_org.go
  43. 2
      vendor/github.com/go-gitea/go-sdk/gitea/admin_repo.go
  44. 2
      vendor/github.com/go-gitea/go-sdk/gitea/admin_user.go
  45. 2
      vendor/github.com/go-gitea/go-sdk/gitea/gitea.go
  46. 2
      vendor/github.com/go-gitea/go-sdk/gitea/issue.go
  47. 2
      vendor/github.com/go-gitea/go-sdk/gitea/issue_comment.go
  48. 2
      vendor/github.com/go-gitea/go-sdk/gitea/issue_label.go
  49. 2
      vendor/github.com/go-gitea/go-sdk/gitea/issue_milestone.go
  50. 2
      vendor/github.com/go-gitea/go-sdk/gitea/miscellaneous.go
  51. 2
      vendor/github.com/go-gitea/go-sdk/gitea/org.go
  52. 2
      vendor/github.com/go-gitea/go-sdk/gitea/org_member.go
  53. 2
      vendor/github.com/go-gitea/go-sdk/gitea/org_team.go
  54. 2
      vendor/github.com/go-gitea/go-sdk/gitea/pull.go
  55. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo.go
  56. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo_branch.go
  57. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo_collaborator.go
  58. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo_file.go
  59. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo_hook.go
  60. 2
      vendor/github.com/go-gitea/go-sdk/gitea/repo_key.go
  61. 2
      vendor/github.com/go-gitea/go-sdk/gitea/user.go
  62. 2
      vendor/github.com/go-gitea/go-sdk/gitea/user_app.go
  63. 2
      vendor/github.com/go-gitea/go-sdk/gitea/user_email.go
  64. 2
      vendor/github.com/go-gitea/go-sdk/gitea/user_follow.go
  65. 2
      vendor/github.com/go-gitea/go-sdk/gitea/user_key.go
  66. 2
      vendor/github.com/go-gitea/go-sdk/gitea/utils.go
  67. 8
      vendor/github.com/gogits/go-gogs-client/README.md
  68. 12
      vendor/vendor.json

3
.gitignore vendored

@ -24,11 +24,12 @@ _testmain.go
*.prof *.prof
coverage.out coverage.out
gitea
*.db *.db
*.log *.log
/gitea
/bin /bin
/dist /dist
/custom /custom

@ -23,7 +23,7 @@
2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site. 2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site.
3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch. 3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch.
4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks! 4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks!
5. If you're interested in using APIs, we have experimental support with [documentation](https://github.com/gogits/go-gogs-client/wiki). 5. If you're interested in using APIs, we have experimental support with [documentation](https://godoc.org/github.com/go-gitea/go-sdk).
6. If your team/company is using Gogs and would like to put your logo on [our website](https://gogs.io), contact us by any means. 6. If your team/company is using Gogs and would like to put your logo on [our website](https://gogs.io), contact us by any means.
## Purpose ## Purpose

@ -39,7 +39,6 @@ import (
"github.com/go-macaron/toolbox" "github.com/go-macaron/toolbox"
"github.com/go-xorm/xorm" "github.com/go-xorm/xorm"
"github.com/go-gitea/git" "github.com/go-gitea/git"
gogs "github.com/gogits/go-gogs-client"
version "github.com/mcuadros/go-version" version "github.com/mcuadros/go-version"
"github.com/urfave/cli" "github.com/urfave/cli"
ini "gopkg.in/ini.v1" ini "gopkg.in/ini.v1"
@ -94,7 +93,6 @@ func checkVersion() {
{"gopkg.in/ini.v1", ini.Version, "1.8.4"}, {"gopkg.in/ini.v1", ini.Version, "1.8.4"},
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"}, {"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
{"github.com/go-gitea/git", git.Version, "0.4.1"}, {"github.com/go-gitea/git", git.Version, "0.4.1"},
{"github.com/gogits/go-gogs-client", gogs.Version, "0.12.1"},
} }
for _, c := range checkers { for _, c := range checkers {
if !version.Compare(c.Version(), c.Expected, ">=") { if !version.Compare(c.Version(), c.Expected, ">=") {

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

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

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

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

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

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

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

@ -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 "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/httplib" "github.com/go-gitea/gitea/modules/httplib"
"github.com/go-gitea/gitea/modules/log" "github.com/go-gitea/gitea/modules/log"

@ -11,7 +11,7 @@ import (
"strings" "strings"
"github.com/go-gitea/git" "github.com/go-gitea/git"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/setting" "github.com/go-gitea/gitea/modules/setting"
) )

@ -4,7 +4,7 @@
package base package base
const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki" const DocURL = "https://godoc.org/github.com/go-gitea/go-sdk/gitea"
type ( type (
TplName string TplName string

@ -36,7 +36,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) {
ctx.JSON(status, map[string]string{ ctx.JSON(status, map[string]string{
"message": message, "message": message,
"url": base.DOC_URL, "url": base.DocURL,
}) })
} }

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/repo" "github.com/go-gitea/gitea/routers/api/v1/repo"

@ -5,7 +5,7 @@
package admin package admin
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

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

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

@ -5,7 +5,7 @@
package misc package misc
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/modules/markdown" "github.com/go-gitea/gitea/modules/markdown"

@ -5,7 +5,7 @@
package org package org
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package org package org
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert" "github.com/go-gitea/gitea/routers/api/v1/convert"

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"
"github.com/go-gitea/gitea/routers/api/v1/convert" "github.com/go-gitea/gitea/routers/api/v1/convert"

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

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

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"strings" "strings"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -6,7 +6,7 @@ package repo
import ( import (
"time" "time"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -7,7 +7,7 @@ package repo
import ( import (
"fmt" "fmt"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package repo package repo
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -7,7 +7,7 @@ package repo
import ( import (
"time" "time"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -7,7 +7,7 @@ package repo
import ( import (
"path" "path"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth" "github.com/go-gitea/gitea/modules/auth"

@ -5,7 +5,7 @@
package user package user
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package user package user
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package user package user
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

@ -5,7 +5,7 @@
package user package user
import ( import (
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/context" "github.com/go-gitea/gitea/modules/context"

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

@ -13,7 +13,7 @@ import (
"github.com/Unknwon/com" "github.com/Unknwon/com"
"github.com/go-gitea/git" "github.com/go-gitea/git"
api "github.com/gogits/go-gogs-client" api "github.com/go-gitea/go-sdk/gitea"
"github.com/go-gitea/gitea/models" "github.com/go-gitea/gitea/models"
"github.com/go-gitea/gitea/modules/auth" "github.com/go-gitea/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://github.com/gogits/go-gogs-client/wiki/Repositories-Webhooks") ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/github.com/go-gitea/go-sdk/gitea")
ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID) ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID)
if err != nil { if err != nil {

@ -83,7 +83,7 @@
</div> </div>
<div class="inline field"> <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"}}</label>
<div class="ui selection dropdown"> <div class="ui selection dropdown">
<input type="hidden" name="readme" value="{{.readme}}"> <input type="hidden" name="readme" value="{{.readme}}">
<div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div> <div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div>

@ -1,6 +1,5 @@
The MIT License (MIT) Copyright (c) 2016 The Gitea Authors
Copyright (c) 2014 The Gogs Authors
Copyright (c) 2014 Go Git Service
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
@ -9,14 +8,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in
copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
SOFTWARE. THE SOFTWARE.

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"encoding/json" "encoding/json"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
type MarkdownOption struct { type MarkdownOption struct {
Text string Text string

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
type Team struct { type Team struct {
ID int64 `json:"id"` ID int64 `json:"id"`

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"time" "time"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"fmt" "fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"fmt" "fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"fmt" "fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import "fmt" import "fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"bytes" "bytes"

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package gogs package gitea
import ( import (
"net/http" "net/http"

@ -1,8 +0,0 @@
Gogs API client in Go
=====================
This package is still in experiment, see [Wiki](https://github.com/gogits/go-gogs-client/wiki) for documentation.
## License
This project is under the MIT License. See the [LICENSE](https://github.com/gogits/gogs/blob/master/LICENSE) file for the full license text.

12
vendor/vendor.json vendored

@ -44,6 +44,12 @@
"revision": "766747ef8b271a2b1142edd0a40735f556ec2c1d", "revision": "766747ef8b271a2b1142edd0a40735f556ec2c1d",
"revisionTime": "2016-11-06T09:52:37Z" "revisionTime": "2016-11-06T09:52:37Z"
}, },
{
"checksumSHA1": "/uhZZppDeb3Rbp3h8C0ALR3hdrA=",
"path": "github.com/go-gitea/go-sdk/gitea",
"revision": "0a0a04ccf7a5e6b93d9a5507701635330cf4579c",
"revisionTime": "2016-11-07T15:06:50Z"
},
{ {
"checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=", "checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=",
"path": "github.com/go-macaron/binding", "path": "github.com/go-macaron/binding",
@ -152,12 +158,6 @@
"revision": "7f3990acf1833faa5ebd0e86f0a4c72a4b5eba3c", "revision": "7f3990acf1833faa5ebd0e86f0a4c72a4b5eba3c",
"revisionTime": "2016-08-10T03:50:02Z" "revisionTime": "2016-08-10T03:50:02Z"
}, },
{
"checksumSHA1": "5P4i69584LOvCooguu2D/pNxU14=",
"path": "github.com/gogits/go-gogs-client",
"revision": "d8aff570fa22d4e38954c753ec8b21862239b31d",
"revisionTime": "2016-08-30T12:34:33Z"
},
{ {
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=", "checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
"path": "github.com/issue9/identicon", "path": "github.com/issue9/identicon",

Loading…
Cancel
Save