From c1e4852fa678ab1ec82b67563f2a2d203cc08836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Sun, 26 Nov 2023 16:27:14 +0900 Subject: [PATCH] fix: logger --- package.json | 3 + src/adapters/supabase/helpers/pretty-logs.ts | 14 +- src/adapters/supabase/helpers/tables/logs.ts | 34 ++- .../supabase/helpers/tables/wallet.ts | 2 +- .../handlers/issue/all-comment-scoring.ts | 2 +- .../comment/handlers/issue/issue-closed.ts | 3 +- .../handlers/issue/relevance-scoring.ts | 1 - .../comment/handlers/issue/scoreSources.ts | 2 +- yarn.lock | 210 ++++++++++++++++++ 9 files changed, 243 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index cc1c9ea85..2830f3051 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "probot-app" ], "scripts": { + "inspect": "node --inspect-brk ./dist/index.js", "build:ci": "ncc build src/adapters/github/github-actions.ts -o ./", "build:serverless": "ncc build src/index.ts -o ./", "build": "tsc", @@ -60,6 +61,7 @@ "openai": "^4.2.0", "prettier": "^2.7.1", "probot": "^12.2.4", + "smee-client": "^2.0.0", "tsx": "^3.12.7", "yaml": "^2.2.2", "zlib": "^1.0.5" @@ -77,6 +79,7 @@ "eslint": "^8.43.0", "jest": "^29.6.2", "knip": "^2.33.4", + "octokit": "^3.1.2", "rimraf": "3.0.2", "source-map-support": "^0.5.21", "ts-jest": "^29.1.1", diff --git a/src/adapters/supabase/helpers/pretty-logs.ts b/src/adapters/supabase/helpers/pretty-logs.ts index 37e491633..d30236264 100644 --- a/src/adapters/supabase/helpers/pretty-logs.ts +++ b/src/adapters/supabase/helpers/pretty-logs.ts @@ -3,6 +3,16 @@ import util from "util"; /* eslint-disable @typescript-eslint/no-explicit-any */ type PrettyLogsWithOk = "ok" | LogLevel; export class PrettyLogs { + constructor() { + this.ok = this.ok.bind(this); + this.info = this.info.bind(this); + this.warn = this.warn.bind(this); + this.error = this.error.bind(this); + this.debug = this.debug.bind(this); + this.http = this.http.bind(this); + this.verbose = this.verbose.bind(this); + this.silly = this.silly.bind(this); + } public error(message: string, metadata?: any) { this._logWithStack(LogLevel.ERROR, message, metadata); } @@ -59,7 +69,6 @@ export class PrettyLogs { delete newMetadata.stack; if (!this._isEmpty(newMetadata)) { - // console.trace(util.inspect(newMetadata, { showHidden: true, depth: null })); this._log(type, newMetadata); } @@ -68,7 +77,6 @@ export class PrettyLogs { const colorizedStack = this._colorizeText(prettyStack, Colors.dim); this._log(type, colorizedStack); } else if (stack) { - // console.trace({ type: typeof stack, stack }); const prettyStack = this._formatStackTrace((stack as unknown as string[]).join("\n"), 1); const colorizedStack = this._colorizeText(prettyStack, Colors.dim); this._log(type, colorizedStack); @@ -113,8 +121,6 @@ export class PrettyLogs { const symbol = defaultSymbols[type]; - // console.trace({ type, symbol, message }); - // Formatting the message const messageFormatted = typeof message === "string" diff --git a/src/adapters/supabase/helpers/tables/logs.ts b/src/adapters/supabase/helpers/tables/logs.ts index 6ea5425ab..f96224819 100644 --- a/src/adapters/supabase/helpers/tables/logs.ts +++ b/src/adapters/supabase/helpers/tables/logs.ts @@ -51,7 +51,7 @@ export class Logs { private _throttleCount = 0; private _retryLimit = 0; // Retries disabled by default - console = new PrettyLogs(); + static console: PrettyLogs; private _log({ level, consoleLog, logMessage, metadata, postComment, type }: LogParams): LogReturn | null { if (this._getNumericLevel(level) > this._maxLevel) return null; // filter out more verbose logs according to maxLevel set in config @@ -89,8 +89,6 @@ export class Logs { // I have mixed feelings on this because it manipulates metadata later possibly without the developer understanding why and where, // but seems useful for the metadata parser to understand where the comment originated from - // console.trace({ metadata }); - if (!metadata) { metadata = {}; } @@ -118,7 +116,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.VERBOSE, - consoleLog: this.console.ok, + consoleLog: Logs.console.ok, logMessage: log, metadata, postComment, @@ -130,7 +128,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.INFO, - consoleLog: this.console.info, + consoleLog: Logs.console.info, logMessage: log, metadata, postComment, @@ -142,7 +140,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.WARN, - consoleLog: this.console.warn, + consoleLog: Logs.console.warn, logMessage: log, metadata, postComment, @@ -154,7 +152,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.DEBUG, - consoleLog: this.console.debug, + consoleLog: Logs.console.debug, logMessage: log, metadata, postComment, @@ -179,7 +177,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.ERROR, - consoleLog: this.console.error, + consoleLog: Logs.console.error, logMessage: log, metadata, postComment, @@ -191,7 +189,7 @@ export class Logs { // metadata = this._addDiagnosticInformation(metadata); // return this._log({ // level: LogLevel.HTTP, - // consoleLog: this.console.http, + // consoleLog: Logs.console.http, // logMessage: log, // metadata, // postComment, @@ -203,7 +201,7 @@ export class Logs { metadata = this._addDiagnosticInformation(metadata); return this._log({ level: LogLevel.VERBOSE, - consoleLog: this.console.verbose, + consoleLog: Logs.console.verbose, logMessage: log, metadata, postComment, @@ -215,7 +213,7 @@ export class Logs { // metadata = this._addDiagnosticInformation(metadata); // return this._log({ // level: LogLevel.SILLY, - // consoleLog: this.console.silly, + // consoleLog: Logs.console.silly, // logMessage: log, // metadata, // postComment, @@ -235,25 +233,26 @@ export class Logs { this._environment = environment; this._retryLimit = retryLimit; this._maxLevel = this._getNumericLevel(logLevel); + Logs.console = new PrettyLogs(); } private async _sendLogsToSupabase(log: LogInsert) { const { error } = await this._supabase.from("logs").insert(log); - if (error) throw this.console.error("Error logging to Supabase:", error); + if (error) throw Logs.console.error("Error logging to Supabase:", error); } private async _processLogs(log: LogInsert) { try { await this._sendLogsToSupabase(log); } catch (error) { - this.console.error("Error sending log, retrying:", error); + Logs.console.error("Error sending log, retrying:", error); return this._retryLimit > 0 ? await this._retryLog(log) : null; } } private async _retryLog(log: LogInsert, retryCount = 0) { if (retryCount >= this._retryLimit) { - this.console.error("Max retry limit reached for log:", log); + Logs.console.error("Max retry limit reached for log:", log); return; } @@ -262,7 +261,7 @@ export class Logs { try { await this._sendLogsToSupabase(log); } catch (error) { - this.console.error("Error sending log (after retry):", error); + Logs.console.error("Error sending log (after retry):", error); await this._retryLog(log, retryCount + 1); } } @@ -303,10 +302,10 @@ export class Logs { private _save(logInsert: LogInsert) { this._addToQueue(logInsert) .then(() => void 0) - .catch(() => this.console.error("Error adding logs to queue")); + .catch(() => Logs.console.error("Error adding logs to queue")); if (this._environment === "development") { - this.console.ok(logInsert.log, logInsert); + Logs.console.ok(logInsert.log, logInsert); } } @@ -352,7 +351,6 @@ export class Logs { .map((line) => `@@ ${line} @@`) .join("\n"); // debug: "@@@@", } else { - // console.trace("unknown log type", type); // default to gray message = message .split("\n") diff --git a/src/adapters/supabase/helpers/tables/wallet.ts b/src/adapters/supabase/helpers/tables/wallet.ts index a6dc286e2..d650c9a3c 100644 --- a/src/adapters/supabase/helpers/tables/wallet.ts +++ b/src/adapters/supabase/helpers/tables/wallet.ts @@ -60,7 +60,7 @@ export class Wallet extends Super { private _validateAndGetWalletAddress(userWithWallet: UserWithWallet): string { // const payload = Runtime.getState().latestEventContext.payload; - // console.trace({ payload, userWithWallet }); + if (userWithWallet[0]?.wallets?.address === undefined) throw new Error("Wallet address is undefined"); if (userWithWallet[0]?.wallets?.address === null) throw new Error("Wallet address is null"); return userWithWallet[0]?.wallets?.address; diff --git a/src/handlers/comment/handlers/issue/all-comment-scoring.ts b/src/handlers/comment/handlers/issue/all-comment-scoring.ts index 6f5e588f0..802511006 100644 --- a/src/handlers/comment/handlers/issue/all-comment-scoring.ts +++ b/src/handlers/comment/handlers/issue/all-comment-scoring.ts @@ -4,7 +4,7 @@ import { CommentScoring } from "./comment-scoring-rubric"; import { ContributorClassesKeys, ContributorView } from "./contribution-style-types"; import { sortCommentsByClass } from "./filter-comments-by-contribution-type"; import { sortUsersByClass } from "./identify-user-ids"; -import { perUserCommentScoring } from "./perUserCommentScoring"; +import { perUserCommentScoring } from "./per-user-comment-scoring"; import { ContextIssue } from "./specification-scoring"; export async function allCommentScoring({ diff --git a/src/handlers/comment/handlers/issue/issue-closed.ts b/src/handlers/comment/handlers/issue/issue-closed.ts index 1f4a32c30..7b037f36a 100644 --- a/src/handlers/comment/handlers/issue/issue-closed.ts +++ b/src/handlers/comment/handlers/issue/issue-closed.ts @@ -5,7 +5,7 @@ import { Context } from "../../../../types/context"; import { Comment, Issue, Payload, StateReason } from "../../../../types/payload"; import structuredMetadata from "../../../shared/structured-metadata"; import { getCollaboratorsForRepo } from "./get-collaborator-ids-for-repo"; -import { getPullRequestComments } from "./getPullRequestComments"; +import { getPullRequestComments } from "./get-pull-request-comments"; export async function issueClosed(context: Context) { // TODO: delegate permit calculation to GitHub Action @@ -71,7 +71,6 @@ async function getEssentials(context: Context) { const issueNumber = issue.number; return { issue, runtime, logger, issueComments, owner, repository, issueNumber }; } -// console.trace({ totals: util.inspect({ totals }, { showHidden: true, depth: null }) }); interface PreflightChecksParams { issue: Issue; diff --git a/src/handlers/comment/handlers/issue/relevance-scoring.ts b/src/handlers/comment/handlers/issue/relevance-scoring.ts index 29852f6a4..8c0377c68 100644 --- a/src/handlers/comment/handlers/issue/relevance-scoring.ts +++ b/src/handlers/comment/handlers/issue/relevance-scoring.ts @@ -155,6 +155,5 @@ function averageSamples(batchResults: (number | Decimal)[][], precision: number) }) .map((score) => score.toDecimalPlaces(precision)); - // console.trace(`${JSON.stringify(batchResults)} -> ${JSON.stringify(averageScores)}`); return averageScores; } diff --git a/src/handlers/comment/handlers/issue/scoreSources.ts b/src/handlers/comment/handlers/issue/scoreSources.ts index 79cbee488..120a7b154 100644 --- a/src/handlers/comment/handlers/issue/scoreSources.ts +++ b/src/handlers/comment/handlers/issue/scoreSources.ts @@ -2,7 +2,7 @@ import { Context } from "../../../../types/context"; import { Comment, Issue, User } from "../../../../types/payload"; import { assigneeScoring as assigneeTaskScoring } from "./assignee-scoring"; import { commentsScoring } from "./evaluate-comments"; -import { getPullRequestComments } from "./getPullRequestComments"; +import { getPullRequestComments } from "./get-pull-request-comments"; import { UserScoreDetails } from "./issue-shared-types"; import { specificationScoring as issuerSpecificationScoring } from "./specification-scoring"; diff --git a/yarn.lock b/yarn.lock index 4281da9a4..003753f3b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1674,6 +1674,19 @@ resolved "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz" integrity sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg== +"@octokit/app@^14.0.2": + version "14.0.2" + resolved "https://registry.yarnpkg.com/@octokit/app/-/app-14.0.2.tgz#b47c52020221351fb58640f113eb38b2ad3998fe" + integrity sha512-NCSCktSx+XmjuSUVn2dLfqQ9WIYePGP95SDJs4I9cn/0ZkeXcPkaoCLl64Us3dRKL2ozC7hArwze5Eu+/qt1tg== + dependencies: + "@octokit/auth-app" "^6.0.0" + "@octokit/auth-unauthenticated" "^5.0.0" + "@octokit/core" "^5.0.0" + "@octokit/oauth-app" "^6.0.0" + "@octokit/plugin-paginate-rest" "^9.0.0" + "@octokit/types" "^12.0.0" + "@octokit/webhooks" "^12.0.4" + "@octokit/auth-app@^4.0.2": version "4.0.13" resolved "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-4.0.13.tgz" @@ -1689,6 +1702,21 @@ universal-github-app-jwt "^1.1.1" universal-user-agent "^6.0.0" +"@octokit/auth-app@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-app/-/auth-app-6.0.1.tgz#7137b1af124189a979de6053da5d4c8cdb1fa4e9" + integrity sha512-tjCD4nzQNZgmLH62+PSnTF6eGerisFgV4v6euhqJik6yWV96e1ZiiGj+NXIqbgnpjLmtnBqVUrNyGKu3DoGEGA== + dependencies: + "@octokit/auth-oauth-app" "^7.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + deprecation "^2.3.1" + lru-cache "^10.0.0" + universal-github-app-jwt "^1.1.1" + universal-user-agent "^6.0.0" + "@octokit/auth-oauth-app@^5.0.0": version "5.0.6" resolved "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-5.0.6.tgz" @@ -1702,6 +1730,19 @@ btoa-lite "^1.0.0" universal-user-agent "^6.0.0" +"@octokit/auth-oauth-app@^7.0.0": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-app/-/auth-oauth-app-7.0.1.tgz#30fd8fcb4608ca52c29c265a3fc7032897796c8e" + integrity sha512-RE0KK0DCjCHXHlQBoubwlLijXEKfhMhKm9gO56xYvFmP1QTMb+vvwRPmQLLx0V+5AvV9N9I3lr1WyTzwL3rMDg== + dependencies: + "@octokit/auth-oauth-device" "^6.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/types" "^12.0.0" + "@types/btoa-lite" "^1.0.0" + btoa-lite "^1.0.0" + universal-user-agent "^6.0.0" + "@octokit/auth-oauth-device@^4.0.0": version "4.0.5" resolved "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-4.0.5.tgz" @@ -1712,6 +1753,16 @@ "@octokit/types" "^9.0.0" universal-user-agent "^6.0.0" +"@octokit/auth-oauth-device@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-device/-/auth-oauth-device-6.0.1.tgz#38e5f7f8997c5e8b774f283463ecf4a7e42d7cee" + integrity sha512-yxU0rkL65QkjbqQedgVx3gmW7YM5fF+r5uaSj9tM/cQGVqloXcqP2xK90eTyYvl29arFVCW8Vz4H/t47mL0ELw== + dependencies: + "@octokit/oauth-methods" "^4.0.0" + "@octokit/request" "^8.0.0" + "@octokit/types" "^12.0.0" + universal-user-agent "^6.0.0" + "@octokit/auth-oauth-user@^2.0.0": version "2.1.2" resolved "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-2.1.2.tgz" @@ -1724,6 +1775,18 @@ btoa-lite "^1.0.0" universal-user-agent "^6.0.0" +"@octokit/auth-oauth-user@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-user/-/auth-oauth-user-4.0.1.tgz#c8267883935c83f78318c726ff91d7e98de05517" + integrity sha512-N94wWW09d0hleCnrO5wt5MxekatqEJ4zf+1vSe8MKMrhZ7gAXKFOKrDEZW2INltvBWJCyDUELgGRv8gfErH1Iw== + dependencies: + "@octokit/auth-oauth-device" "^6.0.0" + "@octokit/oauth-methods" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/types" "^12.0.0" + btoa-lite "^1.0.0" + universal-user-agent "^6.0.0" + "@octokit/auth-token@^2.4.4": version "2.5.0" resolved "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz" @@ -1749,6 +1812,14 @@ "@octokit/request-error" "^3.0.0" "@octokit/types" "^9.0.0" +"@octokit/auth-unauthenticated@^5.0.0": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-unauthenticated/-/auth-unauthenticated-5.0.1.tgz#d8032211728333068b2e07b53997c29e59a03507" + integrity sha512-oxeWzmBFxWd+XolxKTc4zr+h3mt+yofn4r7OfoIkR/Cj/o70eEGmPsFbueyJE2iBAGpjgTnEOKM3pnuEGVmiqg== + dependencies: + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + "@octokit/core@^3.2.4": version "3.6.0" resolved "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz" @@ -1820,11 +1891,30 @@ "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" +"@octokit/oauth-app@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@octokit/oauth-app/-/oauth-app-6.0.0.tgz#a5c3b7794df4280c6aadbadd843119059d70a2c4" + integrity sha512-bNMkS+vJ6oz2hCyraT9ZfTpAQ8dZNqJJQVNaKjPLx4ue5RZiFdU1YWXguOPR8AaSHS+lKe+lR3abn2siGd+zow== + dependencies: + "@octokit/auth-oauth-app" "^7.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/auth-unauthenticated" "^5.0.0" + "@octokit/core" "^5.0.0" + "@octokit/oauth-authorization-url" "^6.0.2" + "@octokit/oauth-methods" "^4.0.0" + "@types/aws-lambda" "^8.10.83" + universal-user-agent "^6.0.0" + "@octokit/oauth-authorization-url@^5.0.0": version "5.0.0" resolved "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-5.0.0.tgz" integrity sha512-y1WhN+ERDZTh0qZ4SR+zotgsQUE1ysKnvBt1hvDRB2WRzYtVKQjn97HEPzoehh66Fj9LwNdlZh+p6TJatT0zzg== +"@octokit/oauth-authorization-url@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@octokit/oauth-authorization-url/-/oauth-authorization-url-6.0.2.tgz#cc82ca29cc5e339c9921672f39f2b3f5c8eb6ef2" + integrity sha512-CdoJukjXXxqLNK4y/VOiVzQVjibqoj/xHgInekviUJV73y/BSIcwvJ/4aNHPBPKcPWFnd4/lO9uqRV65jXhcLA== + "@octokit/oauth-methods@^2.0.0": version "2.0.6" resolved "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-2.0.6.tgz" @@ -1836,6 +1926,17 @@ "@octokit/types" "^9.0.0" btoa-lite "^1.0.0" +"@octokit/oauth-methods@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@octokit/oauth-methods/-/oauth-methods-4.0.1.tgz#90d22c662387056307778d7e5c4763ff559636c4" + integrity sha512-1NdTGCoBHyD6J0n2WGXg9+yDLZrRNZ0moTEex/LSPr49m530WNKcCfXDghofYptr3st3eTii+EHoG5k/o+vbtw== + dependencies: + "@octokit/oauth-authorization-url" "^6.0.2" + "@octokit/request" "^8.0.2" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + btoa-lite "^1.0.0" + "@octokit/openapi-types@^12.11.0": version "12.11.0" resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz" @@ -1856,6 +1957,11 @@ resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz" integrity sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw== +"@octokit/openapi-types@^19.0.2": + version "19.0.2" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-19.0.2.tgz#d72778fe2f6151314b6f0201fbc771bb741276fc" + integrity sha512-8li32fUDUeml/ACRp/njCWTsk5t17cfTM1jp9n08pBrqs5cDFJubtjsSnuz56r5Tad6jdEPJld7LxNp9dNcyjQ== + "@octokit/plugin-enterprise-compatibility@^1.2.8": version "1.3.0" resolved "https://registry.npmjs.org/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.3.0.tgz" @@ -1864,6 +1970,11 @@ "@octokit/request-error" "^2.1.0" "@octokit/types" "^6.0.3" +"@octokit/plugin-paginate-graphql@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-4.0.0.tgz#b26024fa454039c18b948f13bf754ff86b89e8b9" + integrity sha512-7HcYW5tP7/Z6AETAPU14gp5H5KmCPT3hmJrS/5tO7HIgbwenYmgw4OY9Ma54FDySuxMwD+wsJlxtuGWwuZuItA== + "@octokit/plugin-paginate-rest@^2.6.2": version "2.21.3" resolved "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz" @@ -1906,6 +2017,15 @@ "@octokit/types" "^6.0.3" bottleneck "^2.15.3" +"@octokit/plugin-retry@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-retry/-/plugin-retry-6.0.1.tgz#3257404f7cc418e1c1f13a7f2012c1db848b7693" + integrity sha512-SKs+Tz9oj0g4p28qkZwl/topGcb0k0qPNX/i7vBKmDsjoeqnVfFUquqrE/O9oJY7+oLzdCtkiWSXLpLjvl6uog== + dependencies: + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + bottleneck "^2.15.3" + "@octokit/plugin-throttling@^3.3.4": version "3.7.0" resolved "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-3.7.0.tgz" @@ -1914,6 +2034,14 @@ "@octokit/types" "^6.0.1" bottleneck "^2.15.3" +"@octokit/plugin-throttling@^8.0.0": + version "8.1.3" + resolved "https://registry.yarnpkg.com/@octokit/plugin-throttling/-/plugin-throttling-8.1.3.tgz#7fb0e001c0cb9383c6be07740b8ec326ed990f6b" + integrity sha512-pfyqaqpc0EXh5Cn4HX9lWYsZ4gGbjnSmUILeu4u2gnuM50K/wIk9s1Pxt3lVeVwekmITgN/nJdoh43Ka+vye8A== + dependencies: + "@octokit/types" "^12.2.0" + bottleneck "^2.15.3" + "@octokit/request-error@^2.0.2", "@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": version "2.1.0" resolved "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz" @@ -1965,6 +2093,16 @@ node-fetch "^2.6.7" universal-user-agent "^6.0.0" +"@octokit/request@^8.0.0": + version "8.1.6" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.1.6.tgz#a76a859c30421737a3918b40973c2ff369009571" + integrity sha512-YhPaGml3ncZC1NfXpP3WZ7iliL1ap6tLkAp6MvbK2fTTPytzVUyUesBBogcdMm86uRYO5rHaM1xIWxigWZ17MQ== + dependencies: + "@octokit/endpoint" "^9.0.0" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + universal-user-agent "^6.0.0" + "@octokit/request@^8.0.1", "@octokit/request@^8.0.2": version "8.1.4" resolved "https://registry.npmjs.org/@octokit/request/-/request-8.1.4.tgz" @@ -1993,6 +2131,13 @@ dependencies: "@octokit/openapi-types" "^19.0.0" +"@octokit/types@^12.2.0": + version "12.3.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.3.0.tgz#e3f8bc53f65ef551e19cc1a0fea15adadec17d2d" + integrity sha512-nJ8X2HRr234q3w/FcovDlA+ttUU4m1eJAourvfUUtwAWeqL8AsyRqfnLvVnYn3NFbUnsmzQCzLNdFerPwdmcDQ== + dependencies: + "@octokit/openapi-types" "^19.0.2" + "@octokit/types@^6.0.1", "@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0", "@octokit/types@^6.40.0": version "6.41.0" resolved "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz" @@ -2019,11 +2164,31 @@ resolved "https://registry.npmjs.org/@octokit/webhooks-methods/-/webhooks-methods-2.0.0.tgz" integrity sha512-35cfQ4YWlnZnmZKmIxlGPUPLtbkF8lr/A/1Sk1eC0ddLMwQN06dOuLc+dI3YLQS+T+MoNt3DIQ0NynwgKPilig== +"@octokit/webhooks-methods@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/webhooks-methods/-/webhooks-methods-4.0.0.tgz#d1697930ba3d8e6b6d0f8a2c996bb440d2e1df1b" + integrity sha512-M8mwmTXp+VeolOS/kfRvsDdW+IO0qJ8kYodM/sAysk093q6ApgmBXwK1ZlUvAwXVrp/YVHp6aArj4auAxUAOFw== + "@octokit/webhooks-types@5.8.0": version "5.8.0" resolved "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-5.8.0.tgz" integrity sha512-8adktjIb76A7viIdayQSFuBEwOzwhDC+9yxZpKNHjfzrlostHCw0/N7JWpWMObfElwvJMk2fY2l1noENCk9wmw== +"@octokit/webhooks-types@7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@octokit/webhooks-types/-/webhooks-types-7.1.0.tgz#d533dea253416e02dd6c2bfab25e533295bd5d3f" + integrity sha512-y92CpG4kFFtBBjni8LHoV12IegJ+KFxLgKRengrVjKmGE5XMeCuGvlfRe75lTRrgXaG6XIWJlFpIDTlkoJsU8w== + +"@octokit/webhooks@^12.0.4": + version "12.0.8" + resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-12.0.8.tgz#72d01f2ab08f11bcd91b8e8e4e18018018169094" + integrity sha512-IndolsepJQtsGo7pyNRnftla/6Gn6Vejk6iV/RmKP76Z7QNFLanZvoJkU8CLMcOjmJk/6X8T2TfpCXVw68RenQ== + dependencies: + "@octokit/request-error" "^5.0.0" + "@octokit/webhooks-methods" "^4.0.0" + "@octokit/webhooks-types" "7.1.0" + aggregate-error "^3.1.0" + "@octokit/webhooks@^9.8.4": version "9.26.0" resolved "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-9.26.0.tgz" @@ -2359,6 +2524,11 @@ resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== +"@types/aws-lambda@^8.10.83": + version "8.10.129" + resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.129.tgz#c4e040778a13b70a9cdf8ad54c1b853c94e2a44d" + integrity sha512-0Rl7CpTPVws5cp0Ui1gZh4Q+TXC65bXVwTOGoI2RKW45dxWzyZGbjIX0uFjFYdIJ8vnD45y584rIIqvD2vBBfQ== + "@types/babel__core@^7.1.14": version "7.20.2" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz" @@ -3502,6 +3672,11 @@ commander@11.0.0, commander@^11.0.0: resolved "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz" integrity sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ== +commander@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906" + integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== + commander@^4.1.1: version "4.1.1" resolved "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz" @@ -6169,6 +6344,11 @@ log-update@^5.0.1: strip-ansi "^7.0.1" wrap-ansi "^8.0.1" +lru-cache@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.1.0.tgz#2098d41c2dc56500e6c88584aa656c84de7d0484" + integrity sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" @@ -6632,6 +6812,22 @@ octokit-auth-probot@^1.2.2: "@octokit/auth-unauthenticated" "^3.0.0" "@octokit/types" "^8.0.0" +octokit@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/octokit/-/octokit-3.1.2.tgz#e574e4f2f5f8712e10412ce81fb56a74c93d4cfa" + integrity sha512-MG5qmrTL5y8KYwFgE1A4JWmgfQBaIETE/lOlfwNYx1QOtCQHGVxkRJmdUJltFc1HVn73d61TlMhMyNTOtMl+ng== + dependencies: + "@octokit/app" "^14.0.2" + "@octokit/core" "^5.0.0" + "@octokit/oauth-app" "^6.0.0" + "@octokit/plugin-paginate-graphql" "^4.0.0" + "@octokit/plugin-paginate-rest" "^9.0.0" + "@octokit/plugin-rest-endpoint-methods" "^10.0.0" + "@octokit/plugin-retry" "^6.0.0" + "@octokit/plugin-throttling" "^8.0.0" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + on-exit-leak-free@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.0.tgz" @@ -7563,6 +7759,15 @@ slice-ansi@^5.0.0: ansi-styles "^6.0.0" is-fullwidth-code-point "^4.0.0" +smee-client@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/smee-client/-/smee-client-2.0.0.tgz#47c839ed0f9270fbd9d428ae97b5ef519a9d6686" + integrity sha512-LqJAAU4uayG909u8q3lBQZma9TDsQl2pOoXCqrsAda58oxy2o81yQAeBvFc2ilexgQDJc3YPDoPgViBM26M8vw== + dependencies: + commander "^11.1.0" + eventsource "^2.0.2" + validator "^13.11.0" + sonic-boom@^1.0.2: version "1.4.1" resolved "https://registry.npmjs.org/sonic-boom/-/sonic-boom-1.4.1.tgz" @@ -8207,6 +8412,11 @@ validate-npm-package-name@^4.0.0: dependencies: builtins "^5.0.0" +validator@^13.11.0: + version "13.11.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-13.11.0.tgz#23ab3fd59290c61248364eabf4067f04955fbb1b" + integrity sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ== + vary@~1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"