Debugging.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user