@@ -2456,8 +2456,9 @@ exports.context = new Context.Context();
2456
2456
* @param token the repo PAT or GITHUB_TOKEN
2457
2457
* @param options other options to set
2458
2458
*/
2459
- function getOctokit(token, options) {
2460
- return new utils_1.GitHub(utils_1.getOctokitOptions(token, options));
2459
+ function getOctokit(token, options, ...additionalPlugins) {
2460
+ const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
2461
+ return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options));
2461
2462
}
2462
2463
exports.getOctokit = getOctokit;
2463
2464
//# sourceMappingURL=github.js.map
@@ -2539,7 +2540,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
2539
2540
return result;
2540
2541
};
2541
2542
Object.defineProperty(exports, "__esModule", ({ value: true }));
2542
- exports.getOctokitOptions = exports.GitHub = exports.context = void 0;
2543
+ exports.getOctokitOptions = exports.GitHub = exports.defaults = exports. context = void 0;
2543
2544
const Context = __importStar(__nccwpck_require__(4087));
2544
2545
const Utils = __importStar(__nccwpck_require__(7914));
2545
2546
// octokit + plugins
@@ -2548,13 +2549,13 @@ const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
2548
2549
const plugin_paginate_rest_1 = __nccwpck_require__(4193);
2549
2550
exports.context = new Context.Context();
2550
2551
const baseUrl = Utils.getApiBaseUrl();
2551
- const defaults = {
2552
+ exports. defaults = {
2552
2553
baseUrl,
2553
2554
request: {
2554
2555
agent: Utils.getProxyAgent(baseUrl)
2555
2556
}
2556
2557
};
2557
- exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults);
2558
+ exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports. defaults);
2558
2559
/**
2559
2560
* Convience function to correctly format Octokit Options to pass into the constructor.
2560
2561
*
0 commit comments