Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit84bb8fa

Browse files
committed
correct Accept media type to remove sha suffix
1 parentfec818e commit84bb8fa

File tree

4 files changed

+4
-66
lines changed

4 files changed

+4
-66
lines changed

‎content/v3/git/commits.md‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Please see the [blog post](/changes/2016-04-04-git-signing-api-preview) for full
7272

7373
To receive signature verification data in commit objects you must provide a custom[media type](/v3/media) in the`Accept` header:
7474

75-
application/vnd.github.cryptographer-preview+sha
75+
application/vnd.github.cryptographer-preview
7676

7777
{{/tip}}
7878

@@ -83,35 +83,4 @@ To receive signature verification data in commit objects you must provide a cust
8383
<%= headers 200 %>
8484
<%= json(:signed_git_commit) %>
8585

86-
###The`verification` object
87-
88-
The response will include a`verification` field whose value is an object describing the result of verifying the commit's signature. The following fields are included in the`verification` object:
89-
90-
Name | Type | Description
91-
-----|------|--------------
92-
`verified`|`boolean` | Does GitHub consider the signature in this commit to be verified?
93-
`reason`|`string` | The reason for`verified` value. Possible values and their meanings are enumerated in the table bellow.
94-
`signature`|`string` | The signature that was extracted from the commit.
95-
`payload`|`string` | The value that was signed.
96-
97-
####The`reason` field
98-
99-
The following are possible`reason`s that may be included in the`verification` object:
100-
101-
Value | Description
102-
------|------------
103-
`expired_key` | The key that made the signature is expired.
104-
`not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature.
105-
`gpgverify_error` | There was an error communicating with the signature-verification service.
106-
`gpgverify_unavailable` | The signature-verification service is currently unavailable.
107-
`unsigned` | The object does not include a signature.
108-
`unkown_signature_type` | A non-PGP signature was found in the commit.
109-
`no_user` | No user was associated with the`committer` email address in the commit.
110-
`unverified_email` | The`committer` email address in the commit was associated with a user, but the email address is not verified on her/his account.
111-
`bad_email` | The`committer` email address in the commit is not included in the identities of the PGP key that made the signature.
112-
`unknown_key` | The key that made the signature has not been registered with any user's account.
113-
`malformed_signature` | There was an error parsing the signature.
114-
`invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature.
115-
`valid` | None of the above errors applied, so the signature is considered to be verified.
116-
11786
{% endif %}

‎content/v3/git/tags.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Please see the [blog post](/changes/2016-04-04-git-signing-api-preview) for full
7676

7777
To receive signature verification data in tag objects you must provide a custom[media type](/v3/media) in the`Accept` header:
7878

79-
application/vnd.github.cryptographer-preview+sha
79+
application/vnd.github.cryptographer-preview
8080

8181
{{/tip}}
8282

‎content/v3/repos/commits.md‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Please see the [blog post](/changes/2016-04-04-git-signing-api-preview) for full
9898

9999
To receive signature verification data in commit objects you must provide a custom[media type](/v3/media) in the`Accept` header:
100100

101-
application/vnd.github.cryptographer-preview+sha
101+
application/vnd.github.cryptographer-preview
102102

103103
{{/tip}}
104104

@@ -109,35 +109,4 @@ To receive signature verification data in commit objects you must provide a cust
109109
<%= headers 200 %>
110110
<%= json(:signed_commit) %>
111111

112-
###The`verification` object
113-
114-
The response will include a`verification` field whose value is an object describing the result of verifying the commit's signature. The following fields are included in the`verification` object:
115-
116-
Name | Type | Description
117-
-----|------|--------------
118-
`verified`|`boolean` | Does GitHub consider the signature in this commit to be verified?
119-
`reason`|`string` | The reason for`verified` value. Possible values and their meanings are enumerated in the table bellow.
120-
`signature`|`string` | The signature that was extracted from the commit.
121-
`payload`|`string` | The value that was signed.
122-
123-
####The`reason` field
124-
125-
The following are possible`reason`s that may be included in the`verification` object:
126-
127-
Value | Description
128-
------|------------
129-
`expired_key` | The key that made the signature is expired.
130-
`not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature.
131-
`gpgverify_error` | There was an error communicating with the signature-verification service.
132-
`gpgverify_unavailable` | The signature-verification service is currently unavailable.
133-
`unsigned` | The object does not include a signature.
134-
`unkown_signature_type` | A non-PGP signature was found in the commit.
135-
`no_user` | No user was associated with the`committer` email address in the commit.
136-
`unverified_email` | The`committer` email address in the commit was associated with a user, but the email address is not verified on her/his account.
137-
`bad_email` | The`committer` email address in the commit is not included in the identities of the PGP key that made the signature.
138-
`unknown_key` | The key that made the signature has not been registered with any user's account.
139-
`malformed_signature` | There was an error parsing the signature.
140-
`invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature.
141-
`valid` | None of the above errors applied, so the signature is considered to be verified.
142-
143112
{% endif %}

‎content/v3/users/gpg_keys.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ title: User GPG Keys
1616

1717
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
1818

19-
application/vnd.github.cryptographer-preview+sha
19+
application/vnd.github.cryptographer-preview
2020

2121
{{/tip}}
2222

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp