|
1 | 1 | ---
|
2 | 2 | openapi: 3.0.3
|
3 | 3 | info:
|
4 |
| - version: 1.0.0 |
| 4 | + version: 1.0.1 |
5 | 5 | title: GitHub v3 REST API
|
6 | 6 | description: GitHub's v3 REST API.
|
7 | 7 | license:
|
@@ -16088,14 +16088,18 @@ paths:
|
16088 | 16088 | summary: List commits
|
16089 | 16089 | description: |-
|
16090 | 16090 | **Signature verification object**
|
| 16091 | + |
16091 | 16092 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 16093 | + |
16092 | 16094 | | Name | Type | Description |
|
16093 | 16095 | | ---- | ---- | ----------- |
|
16094 | 16096 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
16095 | 16097 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
16096 | 16098 | | `signature` | `string` | The signature that was extracted from the commit. |
|
16097 | 16099 | | `payload` | `string` | The value that was signed. |
|
| 16100 | + |
16098 | 16101 | These are the possible values for `reason` in the `verification` object:
|
| 16102 | + |
16099 | 16103 | | Value | Description |
|
16100 | 16104 | | ----- | ----------- |
|
16101 | 16105 | | `expired_key` | The key that made the signature is expired. |
|
@@ -16397,18 +16401,26 @@ paths:
|
16397 | 16401 | summary: Get a commit
|
16398 | 16402 | description: |-
|
16399 | 16403 | Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.
|
| 16404 | + |
16400 | 16405 | **Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.
|
| 16406 | + |
16401 | 16407 | You can pass the appropriate [media type](https://developer.github.com./v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.
|
| 16408 | + |
16402 | 16409 | To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com./v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.
|
| 16410 | + |
16403 | 16411 | **Signature verification object**
|
| 16412 | + |
16404 | 16413 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 16414 | + |
16405 | 16415 | | Name | Type | Description |
|
16406 | 16416 | | ---- | ---- | ----------- |
|
16407 | 16417 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
16408 | 16418 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
16409 | 16419 | | `signature` | `string` | The signature that was extracted from the commit. |
|
16410 | 16420 | | `payload` | `string` | The value that was signed. |
|
| 16421 | + |
16411 | 16422 | These are the possible values for `reason` in the `verification` object:
|
| 16423 | + |
16412 | 16424 | | Value | Description |
|
16413 | 16425 | | ----- | ----------- |
|
16414 | 16426 | | `expired_key` | The key that made the signature is expired. |
|
@@ -16758,21 +16770,31 @@ paths:
|
16758 | 16770 | summary: Compare two commits
|
16759 | 16771 | description: |-
|
16760 | 16772 | Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `<USERNAME>:branch`.
|
| 16773 | + |
16761 | 16774 | The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com./v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.
|
| 16775 | + |
16762 | 16776 | The response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.
|
| 16777 | + |
16763 | 16778 | **Working with large comparisons**
|
| 16779 | + |
16764 | 16780 | The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [List commits](https://developer.github.com./v3/repos/commits/#list-commits) to enumerate all commits in the range.
|
| 16781 | + |
16765 | 16782 | For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long
|
16766 | 16783 | to generate. You can typically resolve this error by using a smaller commit range.
|
| 16784 | + |
16767 | 16785 | **Signature verification object**
|
| 16786 | + |
16768 | 16787 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 16788 | + |
16769 | 16789 | | Name | Type | Description |
|
16770 | 16790 | | ---- | ---- | ----------- |
|
16771 | 16791 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
16772 | 16792 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
16773 | 16793 | | `signature` | `string` | The signature that was extracted from the commit. |
|
16774 | 16794 | | `payload` | `string` | The value that was signed. |
|
| 16795 | + |
16775 | 16796 | These are the possible values for `reason` in the `verification` object:
|
| 16797 | + |
16776 | 16798 | | Value | Description |
|
16777 | 16799 | | ----- | ----------- |
|
16778 | 16800 | | `expired_key` | The key that made the signature is expired. |
|
@@ -18083,15 +18105,20 @@ paths:
|
18083 | 18105 | summary: Create a commit
|
18084 | 18106 | description: |-
|
18085 | 18107 | Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).
|
| 18108 | + |
18086 | 18109 | **Signature verification object**
|
| 18110 | + |
18087 | 18111 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 18112 | + |
18088 | 18113 | | Name | Type | Description |
|
18089 | 18114 | | ---- | ---- | ----------- |
|
18090 | 18115 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
18091 | 18116 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
18092 | 18117 | | `signature` | `string` | The signature that was extracted from the commit. |
|
18093 | 18118 | | `payload` | `string` | The value that was signed. |
|
| 18119 | + |
18094 | 18120 | These are the possible values for `reason` in the `verification` object:
|
| 18121 | + |
18095 | 18122 | | Value | Description |
|
18096 | 18123 | | ----- | ----------- |
|
18097 | 18124 | | `expired_key` | The key that made the signature is expired. |
|
@@ -18240,15 +18267,20 @@ paths:
|
18240 | 18267 | summary: Get a commit
|
18241 | 18268 | description: |-
|
18242 | 18269 | Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).
|
| 18270 | + |
18243 | 18271 | **Signature verification object**
|
| 18272 | + |
18244 | 18273 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 18274 | + |
18245 | 18275 | | Name | Type | Description |
|
18246 | 18276 | | ---- | ---- | ----------- |
|
18247 | 18277 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
18248 | 18278 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
18249 | 18279 | | `signature` | `string` | The signature that was extracted from the commit. |
|
18250 | 18280 | | `payload` | `string` | The value that was signed. |
|
| 18281 | + |
18251 | 18282 | These are the possible values for `reason` in the `verification` object:
|
| 18283 | + |
18252 | 18284 | | Value | Description |
|
18253 | 18285 | | ----- | ----------- |
|
18254 | 18286 | | `expired_key` | The key that made the signature is expired. |
|
@@ -18533,15 +18565,20 @@ paths:
|
18533 | 18565 | summary: Create a tag object
|
18534 | 18566 | description: |-
|
18535 | 18567 | Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com./v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com./v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.
|
| 18568 | + |
18536 | 18569 | **Signature verification object**
|
| 18570 | + |
18537 | 18571 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 18572 | + |
18538 | 18573 | | Name | Type | Description |
|
18539 | 18574 | | ---- | ---- | ----------- |
|
18540 | 18575 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
18541 | 18576 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
18542 | 18577 | | `signature` | `string` | The signature that was extracted from the commit. |
|
18543 | 18578 | | `payload` | `string` | The value that was signed. |
|
| 18579 | + |
18544 | 18580 | These are the possible values for `reason` in the `verification` object:
|
| 18581 | + |
18545 | 18582 | | Value | Description |
|
18546 | 18583 | | ----- | ----------- |
|
18547 | 18584 | | `expired_key` | The key that made the signature is expired. |
|
@@ -18648,14 +18685,18 @@ paths:
|
18648 | 18685 | summary: Get a tag
|
18649 | 18686 | description: |-
|
18650 | 18687 | **Signature verification object**
|
| 18688 | + |
18651 | 18689 | The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:
|
| 18690 | + |
18652 | 18691 | | Name | Type | Description |
|
18653 | 18692 | | ---- | ---- | ----------- |
|
18654 | 18693 | | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |
|
18655 | 18694 | | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |
|
18656 | 18695 | | `signature` | `string` | The signature that was extracted from the commit. |
|
18657 | 18696 | | `payload` | `string` | The value that was signed. |
|
| 18697 | + |
18658 | 18698 | These are the possible values for `reason` in the `verification` object:
|
| 18699 | + |
18659 | 18700 | | Value | Description |
|
18660 | 18701 | | ----- | ----------- |
|
18661 | 18702 | | `expired_key` | The key that made the signature is expired. |
|
|
0 commit comments