Skip to content

Commit 4da9bbb

Browse files
Octokit Bottimrogers
authored andcommitted
feat: update key pattern for the "Create a SSH signing key for the
authenticated user" API (`POST /user/ssh_signing_keys`) to allow physical security keys (see PR body for other changes) * feat: update `key` pattern for the "Create a SSH signing key for the authenticated user" API (`POST /user/ssh_signing_keys`) to allow physical security keys * fix: tweak description of the "Get a tree" API (`GET /repos/{owner}/{repo}/git/trees/{tree_sha}`) to clarify maximum limits on size and number of entries * fix: mark the path parameter for the base and head branch to compare in the "Compare two commits" API (`GET repos/{owner}/{repo}/compare/{basehead}`) as multi-segment * fix: document allowed response statuses for the "Update a team" API (`PATCH /orgs/{org}/teams/{team_slug}`)
1 parent aab154d commit 4da9bbb

34 files changed

+10393
-32
lines changed

cache/api.github.com.deref.json

Lines changed: 627 additions & 2 deletions
Large diffs are not rendered by default.

cache/api.github.com.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15365,6 +15365,21 @@
1536515365
}
1536615366
},
1536715367
"responses": {
15368+
"200": {
15369+
"description": "Response when the updated information already exists",
15370+
"content": {
15371+
"application/json": {
15372+
"schema": {
15373+
"$ref": "#/components/schemas/team-full"
15374+
},
15375+
"examples": {
15376+
"default": {
15377+
"$ref": "#/components/examples/team-full"
15378+
}
15379+
}
15380+
}
15381+
}
15382+
},
1536815383
"201": {
1536915384
"description": "Response",
1537015385
"content": {
@@ -15379,6 +15394,15 @@
1537915394
}
1538015395
}
1538115396
}
15397+
},
15398+
"403": {
15399+
"$ref": "#/components/responses/forbidden"
15400+
},
15401+
"404": {
15402+
"$ref": "#/components/responses/not_found"
15403+
},
15404+
"422": {
15405+
"$ref": "#/components/responses/validation_failed"
1538215406
}
1538315407
},
1538415408
"x-github": {
@@ -30512,6 +30536,7 @@
3051230536
"description": "The base branch and head branch to compare. This parameter expects the format `{base}...{head}`.",
3051330537
"in": "path",
3051430538
"required": true,
30539+
"x-multi-segment": true,
3051530540
"schema": {
3051630541
"type": "string"
3051730542
}
@@ -33963,7 +33988,7 @@
3396333988
"/repos/{owner}/{repo}/git/trees/{tree_sha}": {
3396433989
"get": {
3396533990
"summary": "Get a tree",
33966-
"description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.",
33991+
"description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.\n\n\n**Note**: The limit for the `tree` array is 100,000 entries with a maximum size of 7 MB when using the `recursive` parameter.",
3396733992
"tags": [
3396833993
"git"
3396933994
],
@@ -56351,7 +56376,7 @@
5635156376
"key": {
5635256377
"description": "The public SSH key to add to your GitHub account. For more information, see \"[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys).\"",
5635356378
"type": "string",
56354-
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) "
56379+
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com "
5635556380
}
5635656381
},
5635756382
"required": [

0 commit comments

Comments
 (0)