Skip to content

Commit ecce28f

Browse files
richmahntechknowlogick
authored andcommitted
Updates SDK dep (#6406)
1 parent 03e4db4 commit ecce28f

File tree

6 files changed

+111
-11
lines changed

6 files changed

+111
-11
lines changed

Gopkg.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

routers/api/v1/repo/commits.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ func GetSingleCommit(ctx *context.APIContext) {
9797
RepoCommit: &api.RepoCommit{
9898
URL: setting.AppURL + ctx.Link[1:],
9999
Author: &api.CommitUser{
100-
Name: commit.Author.Name,
101-
Email: commit.Author.Email,
102-
Date: commit.Author.When.Format(time.RFC3339),
100+
Identity: api.Identity{
101+
Name: commit.Author.Name,
102+
Email: commit.Author.Email,
103+
},
104+
Date: commit.Author.When.Format(time.RFC3339),
103105
},
104106
Committer: &api.CommitUser{
105-
Name: commit.Committer.Name,
106-
Email: commit.Committer.Email,
107-
Date: commit.Committer.When.Format(time.RFC3339),
107+
Identity: api.Identity{
108+
Name: commit.Committer.Name,
109+
Email: commit.Committer.Email,
110+
},
111+
Date: commit.Committer.When.Format(time.RFC3339),
108112
},
109113
Message: commit.Summary(),
110114
Tree: &api.CommitMeta{

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6447,6 +6447,7 @@
64476447
},
64486448
"email": {
64496449
"type": "string",
6450+
"format": "email",
64506451
"x-go-name": "Email"
64516452
},
64526453
"name": {

vendor/code.gitea.io/sdk/gitea/git_blob.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/code.gitea.io/sdk/gitea/repo_commit.go

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/code.gitea.io/sdk/gitea/repo_file.go

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)