Skip to content

Commit 47afdca

Browse files
authored
fix: update response examples and bump package versions (#443)
1 parent e71c9f0 commit 47afdca

File tree

6 files changed

+152
-50
lines changed

6 files changed

+152
-50
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"author": "Gregor Martynus (https://github.com/gr2m)",
2828
"license": "MIT",
2929
"dependencies": {
30-
"@octokit/types": "^6.28.1"
30+
"@octokit/types": "^6.38.0"
3131
},
3232
"peerDependencies": {
3333
"@octokit/core": ">=3"

scripts/update-endpoints/generated/ghe32-endpoints.json

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
{
209209
"code": 201,
210210
"description": "Response when creating a secret",
211-
"examples": null
211+
"examples": [{ "data": "null" }]
212212
},
213213
{
214214
"code": 204,
@@ -314,7 +314,7 @@
314314
{
315315
"code": 201,
316316
"description": "Response when creating a secret",
317-
"examples": null
317+
"examples": [{ "data": "null" }]
318318
},
319319
{
320320
"code": 204,
@@ -1291,7 +1291,10 @@
12911291
"deprecated": null
12921292
}
12931293
],
1294-
"responses": [{ "code": 302, "description": "Response", "examples": null }],
1294+
"responses": [
1295+
{ "code": 302, "description": "Response", "examples": null },
1296+
{ "code": 410, "description": "Gone", "examples": null }
1297+
],
12951298
"renamed": null
12961299
},
12971300
{
@@ -5282,7 +5285,17 @@
52825285
"deprecated": null
52835286
}
52845287
],
5285-
"responses": [{ "code": 200, "description": "Response", "examples": null }],
5288+
"responses": [
5289+
{
5290+
"code": 200,
5291+
"description": "Response",
5292+
"examples": [
5293+
{
5294+
"data": "[{\"id\":\"22237752260\",\"type\":\"WatchEvent\",\"actor\":{\"id\":583231,\"login\":\"octocat\",\"display_login\":\"octocat\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/octocat\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/583231?v=4\"},\"repo\":{\"id\":1296269,\"name\":\"octo-org/octo-repo\",\"url\":\"https://api.github.com/repos/octo-org/octo-repo\"},\"payload\":{\"action\":\"started\"},\"public\":true,\"created_at\":\"2022-06-08T23:29:25Z\"},{\"id\":\"22249084964\",\"type\":\"PushEvent\",\"actor\":{\"id\":583231,\"login\":\"octocat\",\"display_login\":\"octocat\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/octocat\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/583231?v=4\"},\"repo\":{\"id\":1296269,\"name\":\"octo-org/octo-repo\",\"url\":\"https://api.github.com/repos/octo-org/oct-repo\"},\"payload\":{\"push_id\":10115855396,\"size\":1,\"distinct_size\":1,\"ref\":\"refs/heads/master\",\"head\":\"7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\",\"before\":\"883efe034920928c47fe18598c01249d1a9fdabd\",\"commits\":[{\"sha\":\"7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\",\"author\":{\"email\":\"[email protected]\",\"name\":\"Monalisa Octocat\"},\"message\":\"commit\",\"distinct\":true,\"url\":\"https://api.github.com/repos/octo-org/oct-repo/commits/7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\"}]},\"public\":true,\"created_at\":\"2022-06-09T12:47:28Z\"}]"
5295+
}
5296+
]
5297+
}
5298+
],
52865299
"renamed": null
52875300
},
52885301
{
@@ -5483,7 +5496,17 @@
54835496
"deprecated": null
54845497
}
54855498
],
5486-
"responses": [{ "code": 200, "description": "Response", "examples": null }],
5499+
"responses": [
5500+
{
5501+
"code": 200,
5502+
"description": "Response",
5503+
"examples": [
5504+
{
5505+
"data": "[{\"id\":\"22249084964\",\"type\":\"PushEvent\",\"actor\":{\"id\":583231,\"login\":\"octocat\",\"display_login\":\"octocat\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/octocat\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/583231?v=4\"},\"repo\":{\"id\":1296269,\"name\":\"octocat/Hello-World\",\"url\":\"https://api.github.com/repos/octocat/Hello-World\"},\"payload\":{\"push_id\":10115855396,\"size\":1,\"distinct_size\":1,\"ref\":\"refs/heads/master\",\"head\":\"7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\",\"before\":\"883efe034920928c47fe18598c01249d1a9fdabd\",\"commits\":[{\"sha\":\"7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\",\"author\":{\"email\":\"[email protected]\",\"name\":\"Monalisa Octocat\"},\"message\":\"commit\",\"distinct\":true,\"url\":\"https://api.github.com/repos/octocat/Hello-World/commits/7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300\"}]},\"public\":true,\"created_at\":\"2022-06-09T12:47:28Z\"},{\"id\":\"22237752260\",\"type\":\"WatchEvent\",\"actor\":{\"id\":583231,\"login\":\"octocat\",\"display_login\":\"octocat\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/octocat\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/583231?v=4\"},\"repo\":{\"id\":1296269,\"name\":\"octocat/Hello-World\",\"url\":\"https://api.github.com/repos/octocat/Hello-World\"},\"payload\":{\"action\":\"started\"},\"public\":true,\"created_at\":\"2022-06-08T23:29:25Z\"}]"
5506+
}
5507+
]
5508+
}
5509+
],
54875510
"renamed": null
54885511
},
54895512
{

scripts/update-endpoints/generated/ghe33-endpoints.json

Lines changed: 29 additions & 6 deletions
Large diffs are not rendered by default.

scripts/update-endpoints/generated/ghe34-endpoints.json

Lines changed: 33 additions & 10 deletions
Large diffs are not rendered by default.

scripts/update-endpoints/generated/ghe35-endpoints.json

Lines changed: 46 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)