Skip to content

Commit 1c28ed1

Browse files
fix: key_id parameter is a string, not integer (#17)
1 parent 744e079 commit 1c28ed1

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

scripts/update-endpoints/generated/endpoints.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13925,7 +13925,7 @@
1392513925
"name": "key_id",
1392613926
"description": "ID of the key you used to encrypt the secret.",
1392713927
"in": "BODY",
13928-
"type": "integer",
13928+
"type": "string",
1392913929
"required": false,
1393013930
"enum": null,
1393113931
"allowNull": false,
@@ -13935,17 +13935,7 @@
1393513935
"deprecated": null
1393613936
}
1393713937
],
13938-
"responses": [
13939-
{
13940-
"code": 201,
13941-
"description": "response",
13942-
"examples": [
13943-
{
13944-
"data": "{\"encrypted_value\":\"QIvLrNh6tmhUxABczx2vnsncsIj2KiwitqIVpXN9bU3DsHJ1srExk/DrgRaXCAwJnsdsmjo1KwQ=\",\"key_id\":\"1234\"}"
13945-
}
13946-
]
13947-
}
13948-
],
13938+
"responses": [],
1394913939
"renamed": null
1395013940
},
1395113941
{
@@ -33287,7 +33277,7 @@
3328733277
"url": "/repos/{owner}/{repo}/pulls/{pull_number}/files",
3328833278
"isDeprecated": false,
3328933279
"isLegacy": false,
33290-
"description": "**Note:** The response includes a maximum of 300 files.",
33280+
"description": "**Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.",
3329133281
"documentationUrl": "https://developer.github.com/v3/pulls/#list-pull-requests-files",
3329233282
"previews": [],
3329333283
"headers": [],
@@ -44240,7 +44230,7 @@
4424044230
"description": "response",
4424144231
"examples": [
4424244232
{
44243-
"data": "[{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}]"
44233+
"data": "[{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}]"
4424444234
}
4424544235
]
4424644236
}
@@ -44293,7 +44283,7 @@
4429344283
"description": "response",
4429444284
"examples": [
4429544285
{
44296-
"data": "{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}"
44286+
"data": "{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}"
4429744287
}
4429844288
]
4429944289
}
@@ -44333,7 +44323,7 @@
4433344323
"description": "response",
4433444324
"examples": [
4433544325
{
44336-
"data": "{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}"
44326+
"data": "{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}"
4433744327
}
4433844328
]
4433944329
}

src/generated/endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
method: "PUT",
1414
params: {
1515
encrypted_value: { type: "string" },
16-
key_id: { type: "integer" },
16+
key_id: { type: "string" },
1717
name: { required: true, type: "string" },
1818
owner: { required: true, type: "string" },
1919
repo: { required: true, type: "string" }

0 commit comments

Comments
 (0)