mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 22:46: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:
6
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
6
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
@@ -18,14 +18,14 @@ export class RequestError extends Error {
|
||||
get() {
|
||||
logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
||||
return statusCode;
|
||||
}
|
||||
},
|
||||
});
|
||||
this.headers = options.headers;
|
||||
this.headers = options.headers || {};
|
||||
// redact request credentials without mutating original request options
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
||||
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
|
||||
});
|
||||
}
|
||||
requestCopy.url = requestCopy.url
|
||||
|
||||
Reference in New Issue
Block a user