From c3861fa812faf58f42a79913c7dda9bd8082b2d1 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 1 Jan 2026 15:58:59 -0500 Subject: [PATCH] Debugging. --- out/github-action.cjs | 9 ++++++++- src/github-action.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/out/github-action.cjs b/out/github-action.cjs index 0213068..bb49704 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -87850,7 +87850,14 @@ var GITHUB_TOKEN = import_core22.default.getInput("GITHUB_TOKEN"); var DRY_RUN = import_core22.default.getInput("DRY_RUN") === "true"; var ocPrefix = "[OpenCommit]"; var PLATFORM = (process.env.GIT_PLATFORM || "github").toLowerCase(); -var octokit = import_github.default.getOctokit(GITHUB_TOKEN); +var octokit = import_github.default.getOctokit(GITHUB_TOKEN, { + log: { + debug: (message) => console.log("[octokit debug]", message), + info: (message) => console.log("[octokit info]", message), + warn: (message) => console.warn("[octokit warn]", message), + error: (message) => console.error("[octokit error]", message) + } +}); var context = import_github.default.context; var owner = context.repo.owner; var repo = context.repo.repo; diff --git a/src/github-action.ts b/src/github-action.ts index c7e939a..a8e52f0 100644 --- a/src/github-action.ts +++ b/src/github-action.ts @@ -19,7 +19,14 @@ const ocPrefix = '[OpenCommit]'; // Commit prefix to skip // Platforms: github | gitea | forgejo (via GIT_PLATFORM env) const PLATFORM = (process.env.GIT_PLATFORM || 'github').toLowerCase(); -const octokit = github.getOctokit(GITHUB_TOKEN); +const octokit = github.getOctokit(GITHUB_TOKEN, { + log: { + debug: (message) => console.log('[octokit debug]', message), + info: (message) => console.log('[octokit info]', message), + warn: (message) => console.warn('[octokit warn]', message), + error: (message) => console.error('[octokit error]', message), + } +}); const context = github.context; const owner = context.repo.owner; const repo = context.repo.repo;