Skip to content

Commit 674a7c9

Browse files
authored
Merge branch 'main' into beta
2 parents d3d17fe + 49e3f58 commit 674a7c9

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ const { lastIssues } = await octokit.graphql(
600600
{
601601
owner: "octokit",
602602
repo: "graphql.js",
603-
}
603+
},
604604
);
605605
```
606606

@@ -626,7 +626,7 @@ await octokit.graphql(
626626
mediaType: {
627627
previews: ["bane"],
628628
},
629-
}
629+
},
630630
);
631631
```
632632

@@ -775,7 +775,7 @@ const { token } = await app.oauth.createToken({
775775
async onVerification(verification) {
776776
await sendMessageToUser(
777777
request.body.phoneNumber,
778-
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`
778+
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`,
779779
);
780780
},
781781
});

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"jest": "^29.0.0",
4242
"mockdate": "^3.0.5",
4343
"node-fetch": "^2.6.7",
44-
"prettier": "2.8.8",
44+
"prettier": "3.0.0",
4545
"semantic-release": "^21.0.0",
4646
"semantic-release-plugin-update-version-in-files": "^1.1.0",
4747
"ts-jest": "^29.0.0",

src/octokit.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Octokit = OctokitCore.plugin(
1212
restEndpointMethods,
1313
paginateRest,
1414
retry,
15-
throttling
15+
throttling,
1616
).defaults({
1717
userAgent: `octokit.js/${VERSION}`,
1818
throttle: {
@@ -24,7 +24,7 @@ export const Octokit = OctokitCore.plugin(
2424
// istanbul ignore next no need to test internals of the throttle plugin
2525
function onRateLimit(retryAfter: number, options: any, octokit: any) {
2626
octokit.log.warn(
27-
`Request quota exhausted for request ${options.method} ${options.url}`
27+
`Request quota exhausted for request ${options.method} ${options.url}`,
2828
);
2929

3030
if (options.request.retryCount === 0) {
@@ -37,7 +37,7 @@ function onRateLimit(retryAfter: number, options: any, octokit: any) {
3737
// istanbul ignore next no need to test internals of the throttle plugin
3838
function onSecondaryRateLimit(retryAfter: number, options: any, octokit: any) {
3939
octokit.log.warn(
40-
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
40+
`SecondaryRateLimit detected for request ${options.method} ${options.url}`,
4141
);
4242

4343
if (options.request.retryCount === 0) {

test/app.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe("App", () => {
8181
headers: {
8282
authorization: `bearer ${BEARER}`,
8383
},
84-
}
84+
},
8585
)
8686
.postOnce(
8787
"path:/app/installations/123/access_tokens",
@@ -97,7 +97,7 @@ describe("App", () => {
9797
headers: {
9898
authorization: `bearer ${BEARER}`,
9999
},
100-
}
100+
},
101101
)
102102
.getOnce("path:/installation/repositories", {
103103
total_count: 1,
@@ -148,7 +148,7 @@ describe("App", () => {
148148
headers: {
149149
authorization: `bearer ${BEARER}`,
150150
},
151-
}
151+
},
152152
)
153153
.postOnce(
154154
"path:/repos/octokit/octokit.js/issues",
@@ -157,7 +157,7 @@ describe("App", () => {
157157
body: {
158158
title: "Hello, world!",
159159
},
160-
}
160+
},
161161
);
162162
const octokit = await app.getInstallationOctokit(123);
163163

@@ -189,7 +189,7 @@ describe("App", () => {
189189
headers: {
190190
authorization: `bearer ${BEARER}`,
191191
},
192-
}
192+
},
193193
)
194194
.postOnce(
195195
"path:/repos/octokit/octokit.js/issues/1/comments",
@@ -198,7 +198,7 @@ describe("App", () => {
198198
body: {
199199
body: "Hello, World!",
200200
},
201-
}
201+
},
202202
);
203203

204204
app.webhooks.on("issues.opened", async ({ octokit, payload }) => {
@@ -240,7 +240,7 @@ describe("App", () => {
240240
"x-hub-signature-256": await app.webhooks.sign(issuePayload),
241241
},
242242
body: issuePayload,
243-
}
243+
},
244244
);
245245

246246
expect(await response.text()).toEqual("ok\n");

test/smoke.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Smoke tests", () => {
1919
new App({
2020
appId: 123,
2121
privateKey: "private key here",
22-
})
22+
}),
2323
).not.toThrow();
2424
});
2525

@@ -40,7 +40,7 @@ describe("Smoke tests", () => {
4040
new OAuthApp({
4141
clientId: "",
4242
clientSecret: "",
43-
})
43+
}),
4444
).not.toThrow();
4545
});
4646

test/typescript-validate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function OctokitTest() {
2727
{
2828
owner: "",
2929
repo: "",
30-
}
30+
},
3131
);
3232
expect<number>(issues[0].id);
3333

0 commit comments

Comments
 (0)