@@ -1723,8 +1723,9 @@ exports.context = new Context.Context();
1723
1723
* @param token the repo PAT or GITHUB_TOKEN
1724
1724
* @param options other options to set
1725
1725
*/
1726
- function getOctokit(token, options) {
1727
- return new utils_1.GitHub(utils_1.getOctokitOptions(token, options));
1726
+ function getOctokit(token, options, ...additionalPlugins) {
1727
+ const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
1728
+ return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options));
1728
1729
}
1729
1730
exports.getOctokit = getOctokit;
1730
1731
//# sourceMappingURL=github.js.map
@@ -1806,7 +1807,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1806
1807
return result;
1807
1808
};
1808
1809
Object.defineProperty(exports, "__esModule", ({ value: true }));
1809
- exports.getOctokitOptions = exports.GitHub = exports.context = void 0;
1810
+ exports.getOctokitOptions = exports.GitHub = exports.defaults = exports. context = void 0;
1810
1811
const Context = __importStar(__nccwpck_require__(4087));
1811
1812
const Utils = __importStar(__nccwpck_require__(7914));
1812
1813
// octokit + plugins
@@ -1815,13 +1816,13 @@ const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
1815
1816
const plugin_paginate_rest_1 = __nccwpck_require__(4193);
1816
1817
exports.context = new Context.Context();
1817
1818
const baseUrl = Utils.getApiBaseUrl();
1818
- const defaults = {
1819
+ exports. defaults = {
1819
1820
baseUrl,
1820
1821
request: {
1821
1822
agent: Utils.getProxyAgent(baseUrl)
1822
1823
}
1823
1824
};
1824
- exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults);
1825
+ exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports. defaults);
1825
1826
/**
1826
1827
* Convience function to correctly format Octokit Options to pass into the constructor.
1827
1828
*
0 commit comments