Skip to content

Commit

Permalink
Updates SDK dep (#6406)
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn authored and techknowlogick committed Mar 22, 2019
1 parent 03e4db4 commit ecce28f
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

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

16 changes: 10 additions & 6 deletions routers/api/v1/repo/commits.go
Expand Up @@ -97,14 +97,18 @@ func GetSingleCommit(ctx *context.APIContext) {
RepoCommit: &api.RepoCommit{
URL: setting.AppURL + ctx.Link[1:],
Author: &api.CommitUser{
Name: commit.Author.Name,
Email: commit.Author.Email,
Date: commit.Author.When.Format(time.RFC3339),
Identity: api.Identity{
Name: commit.Author.Name,
Email: commit.Author.Email,
},
Date: commit.Author.When.Format(time.RFC3339),
},
Committer: &api.CommitUser{
Name: commit.Committer.Name,
Email: commit.Committer.Email,
Date: commit.Committer.When.Format(time.RFC3339),
Identity: api.Identity{
Name: commit.Committer.Name,
Email: commit.Committer.Email,
},
Date: commit.Committer.When.Format(time.RFC3339),
},
Message: commit.Summary(),
Tree: &api.CommitMeta{
Expand Down
1 change: 1 addition & 0 deletions templates/swagger/v1_json.tmpl
Expand Up @@ -6447,6 +6447,7 @@
},
"email": {
"type": "string",
"format": "email",
"x-go-name": "Email"
},
"name": {
Expand Down
14 changes: 14 additions & 0 deletions vendor/code.gitea.io/sdk/gitea/git_blob.go

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

12 changes: 9 additions & 3 deletions vendor/code.gitea.io/sdk/gitea/repo_commit.go

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

75 changes: 75 additions & 0 deletions vendor/code.gitea.io/sdk/gitea/repo_file.go

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

0 comments on commit ecce28f

Please sign in to comment.