Skip to content

Commit a7e14f5

Browse files
committed
dist: build new release
1 parent 94619e4 commit a7e14f5

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

dist/index.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1723,8 +1723,9 @@ exports.context = new Context.Context();
17231723
* @param token the repo PAT or GITHUB_TOKEN
17241724
* @param options other options to set
17251725
*/
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));
17281729
}
17291730
exports.getOctokit = getOctokit;
17301731
//# sourceMappingURL=github.js.map
@@ -1806,7 +1807,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
18061807
return result;
18071808
};
18081809
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;
18101811
const Context = __importStar(__nccwpck_require__(4087));
18111812
const Utils = __importStar(__nccwpck_require__(7914));
18121813
// octokit + plugins
@@ -1815,13 +1816,13 @@ const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
18151816
const plugin_paginate_rest_1 = __nccwpck_require__(4193);
18161817
exports.context = new Context.Context();
18171818
const baseUrl = Utils.getApiBaseUrl();
1818-
const defaults = {
1819+
exports.defaults = {
18191820
baseUrl,
18201821
request: {
18211822
agent: Utils.getProxyAgent(baseUrl)
18221823
}
18231824
};
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);
18251826
/**
18261827
* Convience function to correctly format Octokit Options to pass into the constructor.
18271828
*

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)