Skip to content

Commit 3a475d2

Browse files
authored
build(deps): bump @octokit/types to latest (#418)
1 parent c9d11c3 commit 3a475d2

File tree

5 files changed

+15
-27
lines changed

5 files changed

+15
-27
lines changed

package-lock.json

Lines changed: 7 additions & 7 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
@@ -24,7 +24,7 @@
2424
"author": "Gregor Martynus (https://twitter.com/gr2m)",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@octokit/types": "^6.18.1",
27+
"@octokit/types": "^6.19.0",
2828
"deprecation": "^2.3.1"
2929
},
3030
"devDependencies": {

scripts/update-endpoints/generated/endpoints.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12457,7 +12457,7 @@
1245712457
"deprecationDate": null,
1245812458
"description": "",
1245912459
"documentationUrl": "https://docs.github.com/rest/reference/codes-of-conduct#get-all-codes-of-conduct",
12460-
"previews": [{ "name": "scarlet-witch" }],
12460+
"previews": [],
1246112461
"headers": [],
1246212462
"parameters": [],
1246312463
"responses": [
@@ -12470,8 +12470,7 @@
1247012470
}
1247112471
]
1247212472
},
12473-
{ "code": 304, "description": "Not modified", "examples": null },
12474-
{ "code": 415, "description": "Preview header missing", "examples": null }
12473+
{ "code": 304, "description": "Not modified", "examples": null }
1247512474
],
1247612475
"renamed": null
1247712476
},
@@ -12485,7 +12484,7 @@
1248512484
"deprecationDate": null,
1248612485
"description": "",
1248712486
"documentationUrl": "https://docs.github.com/rest/reference/codes-of-conduct#get-a-code-of-conduct",
12488-
"previews": [{ "name": "scarlet-witch" }],
12487+
"previews": [],
1248912488
"headers": [],
1249012489
"parameters": [
1249112490
{
@@ -12513,8 +12512,7 @@
1251312512
]
1251412513
},
1251512514
{ "code": 304, "description": "Not modified", "examples": null },
12516-
{ "code": 404, "description": "Resource not found", "examples": null },
12517-
{ "code": 415, "description": "Preview header missing", "examples": null }
12515+
{ "code": 404, "description": "Resource not found", "examples": null }
1251812516
],
1251912517
"renamed": null
1252012518
},

src/generated/endpoints.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,8 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
350350
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"],
351351
},
352352
codesOfConduct: {
353-
getAllCodesOfConduct: [
354-
"GET /codes_of_conduct",
355-
{ mediaType: { previews: ["scarlet-witch"] } },
356-
],
357-
getConductCode: [
358-
"GET /codes_of_conduct/{key}",
359-
{ mediaType: { previews: ["scarlet-witch"] } },
360-
],
353+
getAllCodesOfConduct: ["GET /codes_of_conduct"],
354+
getConductCode: ["GET /codes_of_conduct/{key}"],
361355
getForRepo: [
362356
"GET /repos/{owner}/{repo}/community/code_of_conduct",
363357
{ mediaType: { previews: ["scarlet-witch"] } },

test/rest-endpoint-methods.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ describe("REST API endpoint methods", () => {
3434
it("Required preview header", async () => {
3535
const mock = fetchMock
3636
.sandbox()
37-
.getOnce("path:/codes_of_conduct", [{ key: "mit" }], {
38-
headers: {
39-
accept: "application/vnd.github.scarlet-witch-preview+json",
40-
},
41-
});
37+
.getOnce("path:/codes_of_conduct", [{ key: "mit" }]);
4238

4339
const MyOctokit = Octokit.plugin(restEndpointMethods);
4440
const octokit = new MyOctokit({

0 commit comments

Comments
 (0)