diff options
author | John Olheiser <john.olheiser@gmail.com> | 2022-03-29 10:47:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 10:47:44 -0500 |
commit | 66f2210feca0b50d305a46a203c2b3d2f4d3790b (patch) | |
tree | 43b3630b5fbf0e2dfd1eac5ce0156b82be2016bb /templates/swagger | |
parent | 74731c3a5aea71c81e4ca75bde96154f3adf3cfa (diff) | |
download | gitea-66f2210feca0b50d305a46a203c2b3d2f4d3790b.tar.gz gitea-66f2210feca0b50d305a46a203c2b3d2f4d3790b.zip |
More commit info from API (#19252)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 284e1c71a0..16e3a34856 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -13127,6 +13127,9 @@ "type": "string", "x-go-name": "SHA" }, + "stats": { + "$ref": "#/definitions/CommitStats" + }, "url": { "type": "string", "x-go-name": "URL" @@ -13182,6 +13185,28 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, + "CommitStats": { + "description": "CommitStats is statistics for a RepoCommit", + "type": "object", + "properties": { + "additions": { + "type": "integer", + "format": "int64", + "x-go-name": "Additions" + }, + "deletions": { + "type": "integer", + "format": "int64", + "x-go-name": "Deletions" + }, + "total": { + "type": "integer", + "format": "int64", + "x-go-name": "Total" + } + }, + "x-go-package": "code.gitea.io/gitea/modules/structs" + }, "CommitStatus": { "description": "CommitStatus holds a single status of a single Commit", "type": "object", @@ -17137,6 +17162,9 @@ "url": { "type": "string", "x-go-name": "URL" + }, + "verification": { + "$ref": "#/definitions/PayloadCommitVerification" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" |