diff --git a/README.md b/README.md index 7ce0f6232eb49b96e63b1cd10dde57b7c940da2b..b0a646ab55adfb9542ec70a0bb272a7a6cad6076 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,7 @@ Class | Method | HTTP request | Description - [CodeForksHistory](docs/CodeForksHistory.md) - [Commit](docs/Commit.md) - [CommitContent](docs/CommitContent.md) + - [CommitTree](docs/CommitTree.md) - [Compare](docs/Compare.md) - [CompleteBranch](docs/CompleteBranch.md) - [Content](docs/Content.md) @@ -309,6 +310,7 @@ Class | Method | HTTP request | Description - [RepoCommit](docs/RepoCommit.md) - [RepoPatchParam](docs/RepoPatchParam.md) - [RepositoryPostParam](docs/RepositoryPostParam.md) + - [SingleCommit](docs/SingleCommit.md) - [SshKey](docs/SshKey.md) - [SshKeyBasic](docs/SshKeyBasic.md) - [Tag](docs/Tag.md) diff --git a/api/swagger.yaml b/api/swagger.yaml index 57b6f613e4d6808f93f7e1a12894a2aba0ffe1be..4f219eab27dd7ead9557418724b231b198e9775e 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -13293,7 +13293,7 @@ definitions: comments_url: type: "string" commit: - type: "string" + $ref: "#/definitions/SingleCommit" author: type: "string" committer: @@ -13313,6 +13313,18 @@ definitions: sha: "sha" url: "url" parents: "parents" + SingleCommit: + type: "object" + properties: + tree: + $ref: "#/definitions/CommitTree" + CommitTree: + type: "object" + properties: + sha: + type: "string" + url: + type: "string" Compare: type: "object" properties: diff --git a/docs/CommitTree.md b/docs/CommitTree.md new file mode 100644 index 0000000000000000000000000000000000000000..f968bb837f0c53722f737cfb60ed4afc8527160d --- /dev/null +++ b/docs/CommitTree.md @@ -0,0 +1,11 @@ +# 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) + + diff --git a/docs/RepoCommit.md b/docs/RepoCommit.md index 7bb78c9dbd04e886d4eba02f8157ed14c152bc2d..9a2a09179ba5e29dff0c8dbc0cec512c0d76b290 100644 --- a/docs/RepoCommit.md +++ b/docs/RepoCommit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Sha** | **string** | | [optional] [default to null] **HtmlUrl** | **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] **Committer** | **string** | | [optional] [default to null] **Parents** | **string** | | [optional] [default to null] diff --git a/docs/SingleCommit.md b/docs/SingleCommit.md new file mode 100644 index 0000000000000000000000000000000000000000..749d4e6cd98b69c5d37eebe9c9c6a6692b3e329c --- /dev/null +++ b/docs/SingleCommit.md @@ -0,0 +1,10 @@ +# 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) + + diff --git a/gitee/model_commit_tree.go b/gitee/model_commit_tree.go new file mode 100644 index 0000000000000000000000000000000000000000..70c0f3909fcca2e77c3db506197a0dca46c35852 --- /dev/null +++ b/gitee/model_commit_tree.go @@ -0,0 +1,15 @@ +/* + * 码云 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"` +} diff --git a/gitee/model_repo_commit.go b/gitee/model_repo_commit.go index c0969ea3ba6b62b49d9ee41dc87cec890fee51ae..3913a6f51d990854975aed1bd764e9d86e72ad14 100644 --- a/gitee/model_repo_commit.go +++ b/gitee/model_repo_commit.go @@ -11,13 +11,13 @@ package gitee // 仓库的某个提交 type RepoCommit struct { - Url string `json:"url,omitempty"` - Sha string `json:"sha,omitempty"` - HtmlUrl string `json:"html_url,omitempty"` - CommentsUrl string `json:"comments_url,omitempty"` - Commit string `json:"commit,omitempty"` - Author string `json:"author,omitempty"` - Committer string `json:"committer,omitempty"` - Parents string `json:"parents,omitempty"` - Stats string `json:"stats,omitempty"` + Url string `json:"url,omitempty"` + Sha string `json:"sha,omitempty"` + HtmlUrl string `json:"html_url,omitempty"` + CommentsUrl string `json:"comments_url,omitempty"` + Commit *SingleCommit `json:"commit,omitempty"` + Author string `json:"author,omitempty"` + Committer string `json:"committer,omitempty"` + Parents string `json:"parents,omitempty"` + Stats string `json:"stats,omitempty"` } diff --git a/gitee/model_single_commit.go b/gitee/model_single_commit.go new file mode 100644 index 0000000000000000000000000000000000000000..edc8d6de6dcac4a044c1b995cceed85a5d10e672 --- /dev/null +++ b/gitee/model_single_commit.go @@ -0,0 +1,14 @@ +/* + * 码云 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"` +}