Browse Source

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

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

+ 2 - 1
.gitignore

@@ -24,11 +24,12 @@ _testmain.go
24 24
 *.prof
25 25
 
26 26
 coverage.out
27
-gitea
28 27
 
29 28
 *.db
30 29
 *.log
31 30
 
31
+/gitea
32
+
32 33
 /bin
33 34
 /dist
34 35
 /custom

+ 1 - 1
README.md

@@ -23,7 +23,7 @@
23 23
 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.
24 24
 3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch.
25 25
 4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks!
26
-5. If you're interested in using APIs, we have experimental support with [documentation](https://github.com/gogits/go-gogs-client/wiki).
26
+5. If you're interested in using APIs, we have experimental support with [documentation](https://godoc.org/github.com/go-gitea/go-sdk).
27 27
 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.
28 28
 
29 29
 ## Purpose

+ 0 - 2
cmd/web.go

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

+ 1 - 1
models/action.go

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

+ 1 - 1
models/issue.go

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

+ 1 - 1
models/issue_comment.go

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

+ 1 - 1
models/issue_label.go

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

+ 1 - 1
models/pull.go

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

+ 1 - 1
models/repo.go

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

+ 1 - 1
models/user.go

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

+ 1 - 1
models/webhook.go

@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/go-xorm/xorm"
16 16
 	gouuid "github.com/satori/go.uuid"
17 17
 
18
-	api "github.com/gogits/go-gogs-client"
18
+	api "github.com/go-gitea/go-sdk/gitea"
19 19
 
20 20
 	"github.com/go-gitea/gitea/modules/httplib"
21 21
 	"github.com/go-gitea/gitea/modules/log"

+ 1 - 1
models/webhook_slack.go

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

+ 1 - 1
modules/base/base.go

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

+ 1 - 1
modules/context/api.go

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

+ 1 - 1
routers/api/v1/admin/org.go

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

+ 1 - 1
routers/api/v1/admin/org_team.go

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

+ 1 - 1
routers/api/v1/admin/repo.go

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

+ 1 - 1
routers/api/v1/admin/user.go

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

+ 1 - 1
routers/api/v1/api.go

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

+ 1 - 1
routers/api/v1/convert/convert.go

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

+ 1 - 1
routers/api/v1/misc/markdown.go

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

+ 1 - 1
routers/api/v1/org/org.go

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

+ 1 - 1
routers/api/v1/org/team.go

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

+ 1 - 1
routers/api/v1/repo/branch.go

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

+ 1 - 1
routers/api/v1/repo/collaborators.go

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

+ 1 - 1
routers/api/v1/repo/hook.go

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

+ 1 - 1
routers/api/v1/repo/issue.go

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

+ 1 - 1
routers/api/v1/repo/issue_comment.go

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

+ 1 - 1
routers/api/v1/repo/issue_label.go

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

+ 1 - 1
routers/api/v1/repo/key.go

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

+ 1 - 1
routers/api/v1/repo/label.go

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

+ 1 - 1
routers/api/v1/repo/milestone.go

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

+ 1 - 1
routers/api/v1/repo/repo.go

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

+ 1 - 1
routers/api/v1/user/app.go

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

+ 1 - 1
routers/api/v1/user/email.go

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

+ 1 - 1
routers/api/v1/user/follower.go

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

+ 1 - 1
routers/api/v1/user/key.go

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

+ 1 - 1
routers/api/v1/user/user.go

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

+ 2 - 2
routers/repo/webhook.go

@@ -13,7 +13,7 @@ import (
13 13
 	"github.com/Unknwon/com"
14 14
 
15 15
 	"github.com/go-gitea/git"
16
-	api "github.com/gogits/go-gogs-client"
16
+	api "github.com/go-gitea/go-sdk/gitea"
17 17
 
18 18
 	"github.com/go-gitea/gitea/models"
19 19
 	"github.com/go-gitea/gitea/modules/auth"
@@ -32,7 +32,7 @@ func Webhooks(ctx *context.Context) {
32 32
 	ctx.Data["Title"] = ctx.Tr("repo.settings.hooks")
33 33
 	ctx.Data["PageIsSettingsHooks"] = true
34 34
 	ctx.Data["BaseLink"] = ctx.Repo.RepoLink
35
-	ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://github.com/gogits/go-gogs-client/wiki/Repositories-Webhooks")
35
+	ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/github.com/go-gitea/go-sdk/gitea")
36 36
 
37 37
 	ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID)
38 38
 	if err != nil {

+ 1 - 1
templates/repo/create.tmpl

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

+ 6 - 8
vendor/github.com/gogits/go-gogs-client/LICENSE

@@ -1,6 +1,5 @@
1
-The MIT License (MIT)
2
-
3
-Copyright (c) 2014 Go Git Service
1
+Copyright (c) 2016 The Gitea Authors
2
+Copyright (c) 2014 The Gogs Authors
4 3
 
5 4
 Permission is hereby granted, free of charge, to any person obtaining a copy
6 5
 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
9 8
 copies of the Software, and to permit persons to whom the Software is
10 9
 furnished to do so, subject to the following conditions:
11 10
 
12
-The above copyright notice and this permission notice shall be included in all
13
-copies or substantial portions of the Software.
11
+The above copyright notice and this permission notice shall be included in
12
+all copies or substantial portions of the Software.
14 13
 
15 14
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 15
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 16
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 17
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 18
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
-SOFTWARE.
22
-
19
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+THE SOFTWARE.

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/admin_org.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/admin_repo.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/admin_user.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/gogs.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/issue.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/issue_comment.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/issue_label.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/issue_milestone.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/miscellaneous.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/org.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/org_member.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/org_team.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/pull.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo_branch.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo_collaborator.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo_file.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo_hook.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/repo_key.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/user.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/user_app.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/user_email.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/user_follow.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/user_key.go

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

+ 1 - 1
vendor/github.com/gogits/go-gogs-client/utils.go

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

+ 0 - 8
vendor/github.com/gogits/go-gogs-client/README.md

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

+ 6 - 6
vendor/vendor.json

@@ -45,6 +45,12 @@
45 45
 			"revisionTime": "2016-11-06T09:52:37Z"
46 46
 		},
47 47
 		{
48
+			"checksumSHA1": "/uhZZppDeb3Rbp3h8C0ALR3hdrA=",
49
+			"path": "github.com/go-gitea/go-sdk/gitea",
50
+			"revision": "0a0a04ccf7a5e6b93d9a5507701635330cf4579c",
51
+			"revisionTime": "2016-11-07T15:06:50Z"
52
+		},
53
+		{
48 54
 			"checksumSHA1": "qM/kf31cT2cxjtHxdzbu8q8jPq0=",
49 55
 			"path": "github.com/go-macaron/binding",
50 56
 			"revision": "9440f336b443056c90d7d448a0a55ad8c7599880",
@@ -153,12 +159,6 @@
153 159
 			"revisionTime": "2016-08-10T03:50:02Z"
154 160
 		},
155 161
 		{
156
-			"checksumSHA1": "5P4i69584LOvCooguu2D/pNxU14=",
157
-			"path": "github.com/gogits/go-gogs-client",
158
-			"revision": "d8aff570fa22d4e38954c753ec8b21862239b31d",
159
-			"revisionTime": "2016-08-30T12:34:33Z"
160
-		},
161
-		{
162 162
 			"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
163 163
 			"path": "github.com/issue9/identicon",
164 164
 			"revision": "d36b54562f4cf70c83653e13dc95c220c79ef521",