aboutsummaryrefslogtreecommitdiff
path: root/routes/api/v1/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2019-10-23 23:03:17 -0700
committerGitHub <noreply@github.com>2019-10-23 23:03:17 -0700
commit613139e7bef81d3573e7988a47eb6765f3de347a (patch)
tree49de7277898d3ff47a122c072568edb8ed4c9ac9 /routes/api/v1/repo
parentfb100dbf98f02e4c631d142ff0f52ec29ee2f00c (diff)
Enable Go modules (#5835)
* Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
Diffstat (limited to 'routes/api/v1/repo')
-rw-r--r--routes/api/v1/repo/branch.go6
-rw-r--r--routes/api/v1/repo/collaborators.go6
-rw-r--r--routes/api/v1/repo/commits.go8
-rw-r--r--routes/api/v1/repo/file.go6
-rw-r--r--routes/api/v1/repo/hook.go10
-rw-r--r--routes/api/v1/repo/issue.go8
-rw-r--r--routes/api/v1/repo/issue_comment.go4
-rw-r--r--routes/api/v1/repo/issue_label.go6
-rw-r--r--routes/api/v1/repo/key.go8
-rw-r--r--routes/api/v1/repo/label.go6
-rw-r--r--routes/api/v1/repo/milestone.go4
-rw-r--r--routes/api/v1/repo/repo.go12
12 files changed, 42 insertions, 42 deletions
diff --git a/routes/api/v1/repo/branch.go b/routes/api/v1/repo/branch.go
index 3323ccd6..d21b49b1 100644
--- a/routes/api/v1/repo/branch.go
+++ b/routes/api/v1/repo/branch.go
@@ -7,9 +7,9 @@ package repo
import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/routes/api/v1/convert"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/routes/api/v1/convert"
)
// https://github.com/gogs/go-gogs-client/wiki/Repositories#get-branch
diff --git a/routes/api/v1/repo/collaborators.go b/routes/api/v1/repo/collaborators.go
index 728b6d40..7dac975b 100644
--- a/routes/api/v1/repo/collaborators.go
+++ b/routes/api/v1/repo/collaborators.go
@@ -7,9 +7,9 @@ package repo
import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
)
func ListCollaborators(c *context.APIContext) {
diff --git a/routes/api/v1/repo/commits.go b/routes/api/v1/repo/commits.go
index 302ece1c..81ec139e 100644
--- a/routes/api/v1/repo/commits.go
+++ b/routes/api/v1/repo/commits.go
@@ -12,10 +12,10 @@ import (
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/pkg/setting"
)
func GetSingleCommit(c *context.APIContext) {
diff --git a/routes/api/v1/repo/file.go b/routes/api/v1/repo/file.go
index 744db738..4ae56662 100644
--- a/routes/api/v1/repo/file.go
+++ b/routes/api/v1/repo/file.go
@@ -7,9 +7,9 @@ package repo
import (
"github.com/gogs/git-module"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/routes/repo"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/routes/repo"
)
func GetRawFile(c *context.APIContext) {
diff --git a/routes/api/v1/repo/hook.go b/routes/api/v1/repo/hook.go
index 98ccb41d..a4f77852 100644
--- a/routes/api/v1/repo/hook.go
+++ b/routes/api/v1/repo/hook.go
@@ -5,15 +5,15 @@
package repo
import (
- "github.com/Unknwon/com"
+ "github.com/unknwon/com"
"github.com/json-iterator/go"
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/routes/api/v1/convert"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/routes/api/v1/convert"
)
// https://github.com/gogs/go-gogs-client/wiki/Repositories#list-hooks
diff --git a/routes/api/v1/repo/issue.go b/routes/api/v1/repo/issue.go
index a3cc02ee..bd46dd06 100644
--- a/routes/api/v1/repo/issue.go
+++ b/routes/api/v1/repo/issue.go
@@ -11,10 +11,10 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/pkg/setting"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/pkg/setting"
)
func listIssues(c *context.APIContext, opts *models.IssuesOptions) {
diff --git a/routes/api/v1/repo/issue_comment.go b/routes/api/v1/repo/issue_comment.go
index 83080492..2d0c3e62 100644
--- a/routes/api/v1/repo/issue_comment.go
+++ b/routes/api/v1/repo/issue_comment.go
@@ -9,8 +9,8 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/context"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/context"
)
func ListIssueComments(c *context.APIContext) {
diff --git a/routes/api/v1/repo/issue_label.go b/routes/api/v1/repo/issue_label.go
index 60b49e5d..173ddb42 100644
--- a/routes/api/v1/repo/issue_label.go
+++ b/routes/api/v1/repo/issue_label.go
@@ -9,9 +9,9 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
)
func ListIssueLabels(c *context.APIContext) {
diff --git a/routes/api/v1/repo/key.go b/routes/api/v1/repo/key.go
index db93b927..17ae7084 100644
--- a/routes/api/v1/repo/key.go
+++ b/routes/api/v1/repo/key.go
@@ -9,10 +9,10 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/routes/api/v1/convert"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/routes/api/v1/convert"
)
func composeDeployKeysAPILink(repoPath string) string {
diff --git a/routes/api/v1/repo/label.go b/routes/api/v1/repo/label.go
index 833c0822..189d3fdb 100644
--- a/routes/api/v1/repo/label.go
+++ b/routes/api/v1/repo/label.go
@@ -7,12 +7,12 @@ package repo
import (
"net/http"
- "github.com/Unknwon/com"
+ "github.com/unknwon/com"
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/context"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/context"
)
func ListLabels(c *context.APIContext) {
diff --git a/routes/api/v1/repo/milestone.go b/routes/api/v1/repo/milestone.go
index d91e800c..7d2f9957 100644
--- a/routes/api/v1/repo/milestone.go
+++ b/routes/api/v1/repo/milestone.go
@@ -10,8 +10,8 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/pkg/context"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/pkg/context"
)
func ListMilestones(c *context.APIContext) {
diff --git a/routes/api/v1/repo/repo.go b/routes/api/v1/repo/repo.go
index 9be8ad02..67623ffa 100644
--- a/routes/api/v1/repo/repo.go
+++ b/routes/api/v1/repo/repo.go
@@ -13,12 +13,12 @@ import (
api "github.com/gogs/go-gogs-client"
- "github.com/gogs/gogs/models"
- "github.com/gogs/gogs/models/errors"
- "github.com/gogs/gogs/pkg/context"
- "github.com/gogs/gogs/pkg/form"
- "github.com/gogs/gogs/pkg/setting"
- "github.com/gogs/gogs/routes/api/v1/convert"
+ "gogs.io/gogs/models"
+ "gogs.io/gogs/models/errors"
+ "gogs.io/gogs/pkg/context"
+ "gogs.io/gogs/pkg/form"
+ "gogs.io/gogs/pkg/setting"
+ "gogs.io/gogs/routes/api/v1/convert"
)
func Search(c *context.APIContext) {