mirror of
https://github.com/actions/labeler.git
synced 2025-12-18 08:06:47 +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:
18
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
18
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
@@ -1,21 +1,21 @@
|
||||
module.exports = validateAuth
|
||||
module.exports = validateAuth;
|
||||
|
||||
function validateAuth (auth) {
|
||||
if (typeof auth === 'string') {
|
||||
return
|
||||
function validateAuth(auth) {
|
||||
if (typeof auth === "string") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof auth === 'function') {
|
||||
return
|
||||
if (typeof auth === "function") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (auth.username && auth.password) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
if (auth.clientId && auth.clientSecret) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`)
|
||||
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user