diff --git a/dist/index.js b/dist/index.js index 7d09a7d..63d385e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -143,9 +143,9 @@ var require_cjs = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/context.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/context.js var require_context = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/context.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/context.js"(exports2) { "use strict"; var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -154,6 +154,7 @@ var require_context = __commonJS({ exports2.Context = void 0; var node_path_1 = __importDefault(__require("node:path")); var deepmerge_1 = __importDefault(require_cjs()); + var kOctokitRequestHookAdded = Symbol("octokit request hook added"); var Context2 = class { name; id; @@ -166,9 +167,12 @@ var require_context = __commonJS({ this.payload = event.payload; this.octokit = octokit; this.log = log2; - octokit.hook.before("request", (options2) => { - options2.headers["x-github-delivery"] = event.id; - }); + if (octokit[kOctokitRequestHookAdded] !== true) { + octokit.hook.before("request", (options2) => { + options2.headers["x-github-delivery"] = event.id; + }); + octokit[kOctokitRequestHookAdded] = true; + } } /** * Return the `owner` and `repo` params for making API requests against a @@ -1691,9 +1695,9 @@ var require_commonjs = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/rebind-log.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/rebind-log.js var require_rebind_log = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/rebind-log.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/rebind-log.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.rebindLog = rebindLog; @@ -1708,9 +1712,9 @@ var require_rebind_log = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-authenticated-octokit.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-authenticated-octokit.js var require_get_authenticated_octokit = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-authenticated-octokit.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-authenticated-octokit.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getAuthenticatedOctokit = getAuthenticatedOctokit; @@ -1746,9 +1750,9 @@ var require_get_authenticated_octokit = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/auth.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/auth.js var require_auth = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/auth.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/auth.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.auth = auth7; @@ -25394,9 +25398,9 @@ var require_pino2 = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/get-log.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/get-log.js var require_get_log = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/get-log.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/get-log.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getLog = getLog; @@ -38490,9 +38494,9 @@ var require_built3 = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-octokit-throttle-options.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-octokit-throttle-options.js var require_get_octokit_throttle_options = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-octokit-throttle-options.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-octokit-throttle-options.js"(exports2) { "use strict"; var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -38535,9 +38539,9 @@ var require_get_octokit_throttle_options = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-probot-octokit-with-defaults.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-probot-octokit-with-defaults.js var require_get_probot_octokit_with_defaults = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-probot-octokit-with-defaults.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-probot-octokit-with-defaults.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getProbotOctokitWithDefaults = getProbotOctokitWithDefaults; @@ -39519,9 +39523,9 @@ var init_dist_src5 = __esm({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/get-error-handler.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/get-error-handler.js var require_get_error_handler = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/get-error-handler.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/get-error-handler.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getErrorHandler = getErrorHandler; @@ -39549,9 +39553,9 @@ var require_get_error_handler = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/octokit-webhooks-transform.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/octokit-webhooks-transform.js var require_octokit_webhooks_transform = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/octokit-webhooks-transform.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/octokit-webhooks-transform.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.webhookTransform = webhookTransform; @@ -39567,9 +39571,9 @@ var require_octokit_webhooks_transform = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-webhooks.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-webhooks.js var require_get_webhooks = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/get-webhooks.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/get-webhooks.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getWebhooks = getWebhooks; @@ -48695,9 +48699,9 @@ var init_dist_src15 = __esm({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/octokit-plugin-probot-request-logging.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/octokit-plugin-probot-request-logging.js var require_octokit_plugin_probot_request_logging = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/octokit-plugin-probot-request-logging.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/octokit-plugin-probot-request-logging.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.probotRequestLogging = probotRequestLogging; @@ -48719,19 +48723,19 @@ var require_octokit_plugin_probot_request_logging = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/version.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/version.js var require_version2 = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/version.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/version.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.VERSION = void 0; - exports2.VERSION = "13.4.1"; + exports2.VERSION = "13.4.2"; } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/probot-octokit.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/probot-octokit.js var require_probot_octokit = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/octokit/probot-octokit.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/octokit/probot-octokit.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.ProbotOctokit = void 0; @@ -71230,9 +71234,9 @@ var require_logger = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/server/logging-middleware.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/server/logging-middleware.js var require_logging_middleware = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/server/logging-middleware.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/server/logging-middleware.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getLoggingMiddleware = getLoggingMiddleware; @@ -71256,9 +71260,9 @@ var require_logging_middleware = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/webhook-proxy.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/webhook-proxy.js var require_webhook_proxy = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/webhook-proxy.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/webhook-proxy.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createWebhookProxy = void 0; @@ -71281,9 +71285,9 @@ var require_webhook_proxy = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/server/server.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/server/server.js var require_server = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/server/server.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/server/server.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -71303,15 +71307,25 @@ var require_server = __commonJS({ } : function(o, v) { o["default"] = v; }); - var __importStar = exports2 && exports2.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; + var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ function() { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function(o2) { + var ar = []; + for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) { + for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + } + __setModuleDefault(result, mod); + return result; + }; + }(); Object.defineProperty(exports2, "__esModule", { value: true }); exports2.Server = exports2.defaultWebhooksPath = void 0; var node_path_1 = __require("node:path"); @@ -71403,9 +71417,9 @@ var require_server = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/probot.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/probot.js var require_probot = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/probot.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/probot.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.Probot = void 0; @@ -75962,9 +75976,9 @@ var require_js_yaml = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/load-package-json.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/load-package-json.js var require_load_package_json = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/load-package-json.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/load-package-json.js"(exports2) { "use strict"; var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -75993,9 +76007,9 @@ var require_load_package_json = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/manifest-creation.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/manifest-creation.js var require_manifest_creation = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/manifest-creation.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/manifest-creation.js"(exports2) { "use strict"; var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -76087,9 +76101,9 @@ var require_manifest_creation = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/is-production.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/is-production.js var require_is_production = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/helpers/is-production.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/helpers/is-production.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.isProduction = isProduction; @@ -76099,9 +76113,9 @@ var require_is_production = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/import.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/import.js var require_import = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/import.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/import.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.importView = importView; @@ -76194,9 +76208,9 @@ var require_import = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/setup.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/setup.js var require_setup = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/setup.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/setup.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.setupView = setupView; @@ -76250,9 +76264,9 @@ var require_setup = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/success.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/success.js var require_success = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/success.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/success.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.successView = successView; @@ -76292,9 +76306,9 @@ var require_success = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/apps/setup.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/apps/setup.js var require_setup2 = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/apps/setup.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/apps/setup.js"(exports2) { "use strict"; var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -79496,9 +79510,9 @@ var init_dist_web9 = __esm({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/bin/read-cli-options.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/bin/read-cli-options.js var require_read_cli_options = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/bin/read-cli-options.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/bin/read-cli-options.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.readCliOptions = readCliOptions; @@ -79518,9 +79532,9 @@ var require_read_cli_options = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/bin/read-env-options.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/bin/read-env-options.js var require_read_env_options = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/bin/read-env-options.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/bin/read-env-options.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.readEnvOptions = readEnvOptions; @@ -79549,9 +79563,9 @@ var require_read_env_options = __commonJS({ } }); -// node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/probot.js +// node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/probot.js var require_probot2 = __commonJS({ - "node_modules/.pnpm/probot@13.4.1/node_modules/probot/lib/views/probot.js"(exports2) { + "node_modules/.pnpm/probot@13.4.2/node_modules/probot/lib/views/probot.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.probotView = probotView; @@ -79592,9 +79606,9 @@ ${version ? ` =18'} - probot@13.4.1: - resolution: {integrity: sha512-nLmQ4UI0U1upNtMr6TQQ5b4fdenzS90Of8/YAkbWgOG+GqlB/IJHArF6ZvMKBMIpIgsmTWd5eDSutBLrlbCT1w==} + probot@13.4.2: + resolution: {integrity: sha512-qMnSDtK19DRe/s+ZhJSluVaz1cKp9c/1AWcvANgkFTAn5Zr0xbtY01xVWQ4KO2UZ6Xy4HfOZ4aPKWpJCkbcmgA==} engines: {node: '>=18'} hasBin: true @@ -4093,7 +4093,7 @@ snapshots: dependencies: '@actions/core': 1.11.1 pino: 8.21.0 - probot: 13.4.1 + probot: 13.4.2 through2: 4.0.2 transitivePeerDependencies: - supports-color @@ -6609,7 +6609,7 @@ snapshots: dependencies: parse-ms: 4.0.0 - probot@13.4.1: + probot@13.4.2: dependencies: '@octokit/core': 5.2.0 '@octokit/plugin-enterprise-compatibility': 4.1.0