mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 13:07:24 +00:00
Bump actions/github to 2.2.0 to support GHES (#72)
* Bumping actions/github to 2.2.0 * Husky commit correct node modules
This commit is contained in:
51
node_modules/@octokit/rest/index.js
generated
vendored
51
node_modules/@octokit/rest/index.js
generated
vendored
@@ -1,16 +1,43 @@
|
||||
const Octokit = require('./lib/core')
|
||||
const { requestLog } = require("@octokit/plugin-request-log");
|
||||
const {
|
||||
restEndpointMethods
|
||||
} = require("@octokit/plugin-rest-endpoint-methods");
|
||||
|
||||
const Core = require("./lib/core");
|
||||
|
||||
const CORE_PLUGINS = [
|
||||
require('./plugins/log'),
|
||||
require('./plugins/authentication-deprecated'), // deprecated: remove in v17
|
||||
require('./plugins/authentication'),
|
||||
require('./plugins/pagination'),
|
||||
require('./plugins/normalize-git-reference-responses'),
|
||||
require('./plugins/register-endpoints'),
|
||||
require('./plugins/rest-api-endpoints'),
|
||||
require('./plugins/validate'),
|
||||
require("./plugins/authentication"),
|
||||
require("./plugins/authentication-deprecated"), // deprecated: remove in v17
|
||||
requestLog,
|
||||
require("./plugins/pagination"),
|
||||
restEndpointMethods,
|
||||
require("./plugins/validate"),
|
||||
|
||||
require('octokit-pagination-methods') // deprecated: remove in v17
|
||||
]
|
||||
require("octokit-pagination-methods") // deprecated: remove in v17
|
||||
];
|
||||
|
||||
module.exports = Octokit.plugin(CORE_PLUGINS)
|
||||
const OctokitRest = Core.plugin(CORE_PLUGINS);
|
||||
|
||||
function DeprecatedOctokit(options) {
|
||||
const warn =
|
||||
options && options.log && options.log.warn
|
||||
? options.log.warn
|
||||
: console.warn;
|
||||
warn(
|
||||
'[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
|
||||
);
|
||||
return new OctokitRest(options);
|
||||
}
|
||||
|
||||
const Octokit = Object.assign(DeprecatedOctokit, {
|
||||
Octokit: OctokitRest
|
||||
});
|
||||
|
||||
Object.keys(OctokitRest).forEach(key => {
|
||||
/* istanbul ignore else */
|
||||
if (OctokitRest.hasOwnProperty(key)) {
|
||||
Octokit[key] = OctokitRest[key];
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = Octokit;
|
||||
|
||||
Reference in New Issue
Block a user