Skip to content

Commit

Permalink
vendor: update github.com/gogs/go-gogs-client
Browse files Browse the repository at this point in the history
Bring fixes for gogs#5538
  • Loading branch information
unknwon committed Dec 3, 2018
1 parent 6690023 commit 9811494
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If applicable, add screenshots to help explain your problem.
- Gogs version (or commit ref):
- Git version:
- Operating system:
- Database (use `[x]`):
- Database (replace `[ ]` with `[x]`):
- [ ] PostgreSQL
- [ ] MySQL
- [ ] MSSQL
Expand Down
1 change: 1 addition & 0 deletions models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (u *User) APIFormat() *api.User {
return &api.User{
ID: u.ID,
UserName: u.Name,
Login: u.Name,
FullName: u.FullName,
Email: u.Email,
AvatarUrl: u.AvatarLink(),
Expand Down
8 changes: 2 additions & 6 deletions routes/api/v1/repo/collaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@ import (
func ListCollaborators(c *context.APIContext) {
collaborators, err := c.Repo.Repository.GetCollaborators()
if err != nil {
if errors.IsUserNotExist(err) {
c.Error(422, "", err)
} else {
c.Error(500, "GetCollaborators", err)
}
c.ServerError("GetCollaborators", err)
return
}

apiCollaborators := make([]*api.Collaborator, len(collaborators))
for i := range collaborators {
apiCollaborators[i] = collaborators[i].APIFormat()
}
c.JSON(200, &apiCollaborators)
c.JSONSuccess(&apiCollaborators)
}

func AddCollaborator(c *context.APIContext, form api.AddCollaboratorOption) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/gogs/go-gogs-client/gogs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 2 additions & 13 deletions vendor/github.com/gogs/go-gogs-client/user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@
"revisionTime": "2018-10-23T10:58:32Z"
},
{
"checksumSHA1": "zQkw7E0MzSfPem4f9eCGhue21Nw=",
"checksumSHA1": "zjkjsFMM7ML0rZBOLxMU2yxHxx4=",
"path": "github.com/gogs/go-gogs-client",
"revision": "0c040274bc4e176c86a466e2ae327324fc143269",
"revisionTime": "2018-12-02T17:53:48Z"
"revision": "2040be8569f298967623526418f718a86e725f9b",
"revisionTime": "2018-12-03T19:42:48Z"
},
{
"checksumSHA1": "GaJLoEuMGnP5ofXvuweAI4wx06U=",
Expand Down

0 comments on commit 9811494

Please sign in to comment.