提交 acd20a22 编写于 作者: Z zengchen1024

fix response of get single commit

上级 ced5a4d6
...@@ -264,6 +264,7 @@ Class | Method | HTTP request | Description ...@@ -264,6 +264,7 @@ Class | Method | HTTP request | Description
- [CodeForksHistory](docs/CodeForksHistory.md) - [CodeForksHistory](docs/CodeForksHistory.md)
- [Commit](docs/Commit.md) - [Commit](docs/Commit.md)
- [CommitContent](docs/CommitContent.md) - [CommitContent](docs/CommitContent.md)
- [CommitTree](docs/CommitTree.md)
- [Compare](docs/Compare.md) - [Compare](docs/Compare.md)
- [CompleteBranch](docs/CompleteBranch.md) - [CompleteBranch](docs/CompleteBranch.md)
- [Content](docs/Content.md) - [Content](docs/Content.md)
...@@ -309,6 +310,7 @@ Class | Method | HTTP request | Description ...@@ -309,6 +310,7 @@ Class | Method | HTTP request | Description
- [RepoCommit](docs/RepoCommit.md) - [RepoCommit](docs/RepoCommit.md)
- [RepoPatchParam](docs/RepoPatchParam.md) - [RepoPatchParam](docs/RepoPatchParam.md)
- [RepositoryPostParam](docs/RepositoryPostParam.md) - [RepositoryPostParam](docs/RepositoryPostParam.md)
- [SingleCommit](docs/SingleCommit.md)
- [SshKey](docs/SshKey.md) - [SshKey](docs/SshKey.md)
- [SshKeyBasic](docs/SshKeyBasic.md) - [SshKeyBasic](docs/SshKeyBasic.md)
- [Tag](docs/Tag.md) - [Tag](docs/Tag.md)
......
...@@ -13293,7 +13293,7 @@ definitions: ...@@ -13293,7 +13293,7 @@ definitions:
comments_url: comments_url:
type: "string" type: "string"
commit: commit:
type: "string" $ref: "#/definitions/SingleCommit"
author: author:
type: "string" type: "string"
committer: committer:
...@@ -13313,6 +13313,18 @@ definitions: ...@@ -13313,6 +13313,18 @@ definitions:
sha: "sha" sha: "sha"
url: "url" url: "url"
parents: "parents" parents: "parents"
SingleCommit:
type: "object"
properties:
tree:
$ref: "#/definitions/CommitTree"
CommitTree:
type: "object"
properties:
sha:
type: "string"
url:
type: "string"
Compare: Compare:
type: "object" type: "object"
properties: properties:
......
# CommitTree
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Sha** | **string** | | [optional] [default to null]
**Url** | **string** | | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
...@@ -7,7 +7,7 @@ Name | Type | Description | Notes ...@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Sha** | **string** | | [optional] [default to null] **Sha** | **string** | | [optional] [default to null]
**HtmlUrl** | **string** | | [optional] [default to null] **HtmlUrl** | **string** | | [optional] [default to null]
**CommentsUrl** | **string** | | [optional] [default to null] **CommentsUrl** | **string** | | [optional] [default to null]
**Commit** | **string** | | [optional] [default to null] **Commit** | [***SingleCommit**](SingleCommit.md) | | [optional] [default to null]
**Author** | **string** | | [optional] [default to null] **Author** | **string** | | [optional] [default to null]
**Committer** | **string** | | [optional] [default to null] **Committer** | **string** | | [optional] [default to null]
**Parents** | **string** | | [optional] [default to null] **Parents** | **string** | | [optional] [default to null]
......
# SingleCommit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Tree** | [***CommitTree**](CommitTree.md) | | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
/*
* 码云 Open API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 5.3.2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package gitee
type CommitTree struct {
Sha string `json:"sha,omitempty"`
Url string `json:"url,omitempty"`
}
...@@ -11,13 +11,13 @@ package gitee ...@@ -11,13 +11,13 @@ package gitee
// 仓库的某个提交 // 仓库的某个提交
type RepoCommit struct { type RepoCommit struct {
Url string `json:"url,omitempty"` Url string `json:"url,omitempty"`
Sha string `json:"sha,omitempty"` Sha string `json:"sha,omitempty"`
HtmlUrl string `json:"html_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"`
CommentsUrl string `json:"comments_url,omitempty"` CommentsUrl string `json:"comments_url,omitempty"`
Commit string `json:"commit,omitempty"` Commit *SingleCommit `json:"commit,omitempty"`
Author string `json:"author,omitempty"` Author string `json:"author,omitempty"`
Committer string `json:"committer,omitempty"` Committer string `json:"committer,omitempty"`
Parents string `json:"parents,omitempty"` Parents string `json:"parents,omitempty"`
Stats string `json:"stats,omitempty"` Stats string `json:"stats,omitempty"`
} }
/*
* 码云 Open API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 5.3.2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package gitee
type SingleCommit struct {
Tree *CommitTree `json:"tree,omitempty"`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册