Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfloyd authored Jul 10, 2023
2 parents d3d17fe + 49e3f58 commit 674a7c9
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ const { lastIssues } = await octokit.graphql(
{
owner: "octokit",
repo: "graphql.js",
}
},
);
```

Expand All @@ -626,7 +626,7 @@ await octokit.graphql(
mediaType: {
previews: ["bane"],
},
}
},
);
```

Expand Down Expand Up @@ -775,7 +775,7 @@ const { token } = await app.oauth.createToken({
async onVerification(verification) {
await sendMessageToUser(
request.body.phoneNumber,
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`,
);
},
});
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"jest": "^29.0.0",
"mockdate": "^3.0.5",
"node-fetch": "^2.6.7",
"prettier": "2.8.8",
"prettier": "3.0.0",
"semantic-release": "^21.0.0",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"ts-jest": "^29.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Octokit = OctokitCore.plugin(
restEndpointMethods,
paginateRest,
retry,
throttling
throttling,
).defaults({
userAgent: `octokit.js/${VERSION}`,
throttle: {
Expand All @@ -24,7 +24,7 @@ export const Octokit = OctokitCore.plugin(
// istanbul ignore next no need to test internals of the throttle plugin
function onRateLimit(retryAfter: number, options: any, octokit: any) {
octokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

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

if (options.request.retryCount === 0) {
Expand Down
14 changes: 7 additions & 7 deletions test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/app/installations/123/access_tokens",
Expand All @@ -97,7 +97,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.getOnce("path:/installation/repositories", {
total_count: 1,
Expand Down Expand Up @@ -148,7 +148,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/repos/octokit/octokit.js/issues",
Expand All @@ -157,7 +157,7 @@ describe("App", () => {
body: {
title: "Hello, world!",
},
}
},
);
const octokit = await app.getInstallationOctokit(123);

Expand Down Expand Up @@ -189,7 +189,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/repos/octokit/octokit.js/issues/1/comments",
Expand All @@ -198,7 +198,7 @@ describe("App", () => {
body: {
body: "Hello, World!",
},
}
},
);

app.webhooks.on("issues.opened", async ({ octokit, payload }) => {
Expand Down Expand Up @@ -240,7 +240,7 @@ describe("App", () => {
"x-hub-signature-256": await app.webhooks.sign(issuePayload),
},
body: issuePayload,
}
},
);

expect(await response.text()).toEqual("ok\n");
Expand Down
4 changes: 2 additions & 2 deletions test/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Smoke tests", () => {
new App({
appId: 123,
privateKey: "private key here",
})
}),
).not.toThrow();
});

Expand All @@ -40,7 +40,7 @@ describe("Smoke tests", () => {
new OAuthApp({
clientId: "",
clientSecret: "",
})
}),
).not.toThrow();
});

Expand Down
2 changes: 1 addition & 1 deletion test/typescript-validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function OctokitTest() {
{
owner: "",
repo: "",
}
},
);
expect<number>(issues[0].id);

Expand Down

0 comments on commit 674a7c9

Please sign in to comment.