Skip to content

Commit 30249f2

Browse files
author
github-actions
committed
[actions] Build of cd069dd
1 parent 575e5f1 commit 30249f2

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

typescript/dist/index.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@ class Context {
24452445
this.action = process.env.GITHUB_ACTION;
24462446
this.actor = process.env.GITHUB_ACTOR;
24472447
this.job = process.env.GITHUB_JOB;
2448+
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
24482449
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
24492450
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
24502451
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
@@ -4132,13 +4133,28 @@ var import_graphql = __nccwpck_require__(7);
41324133
var import_auth_token = __nccwpck_require__(7864);
41334134

41344135
// pkg/dist-src/version.js
4135-
var VERSION = "5.2.1";
4136+
var VERSION = "5.2.2";
41364137

41374138
// pkg/dist-src/index.js
41384139
var noop = () => {
41394140
};
41404141
var consoleWarn = console.warn.bind(console);
41414142
var consoleError = console.error.bind(console);
4143+
function createLogger(logger = {}) {
4144+
if (typeof logger.debug !== "function") {
4145+
logger.debug = noop;
4146+
}
4147+
if (typeof logger.info !== "function") {
4148+
logger.info = noop;
4149+
}
4150+
if (typeof logger.warn !== "function") {
4151+
logger.warn = consoleWarn;
4152+
}
4153+
if (typeof logger.error !== "function") {
4154+
logger.error = consoleError;
4155+
}
4156+
return logger;
4157+
}
41424158
var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
41434159
var Octokit = class {
41444160
static {
@@ -4212,15 +4228,7 @@ var Octokit = class {
42124228
}
42134229
this.request = import_request.request.defaults(requestDefaults);
42144230
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
4215-
this.log = Object.assign(
4216-
{
4217-
debug: noop,
4218-
info: noop,
4219-
warn: consoleWarn,
4220-
error: consoleError
4221-
},
4222-
options.log
4223-
);
4231+
this.log = createLogger(options.log);
42244232
this.hook = hook;
42254233
if (!options.authStrategy) {
42264234
if (!options.auth) {

typescript/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)