From 314f669f104b46a2db8a5e67cb3485ca119cccc1 Mon Sep 17 00:00:00 2001 From: ssalbdivad Date: Thu, 9 Oct 2025 19:28:00 -0400 Subject: [PATCH] add debug logging --- entry.cjs | 7 +++++-- mcp/config.ts | 5 ++++- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/entry.cjs b/entry.cjs index f236eea..0e062ad 100755 --- a/entry.cjs +++ b/entry.cjs @@ -25508,7 +25508,9 @@ var actionPath = process.env.GITHUB_ACTION_PATH || process.cwd(); function createMcpConfig(githubInstallationToken) { const githubRepository = process.env.GITHUB_REPOSITORY; if (!githubRepository) { - throw new Error("GITHUB_REPOSITORY environment variable is required for MCP GitHub integration"); + throw new Error( + "GITHUB_REPOSITORY environment variable is required for MCP GitHub integration" + ); } return JSON.stringify( { @@ -25518,7 +25520,8 @@ function createMcpConfig(githubInstallationToken) { args: [`${actionPath}/mcp/server.ts`], env: { GITHUB_INSTALLATION_TOKEN: githubInstallationToken, - GITHUB_REPOSITORY: githubRepository + GITHUB_REPOSITORY: githubRepository, + LOG_LEVEL: "debug" } } } diff --git a/mcp/config.ts b/mcp/config.ts index 6d64471..141d68f 100644 --- a/mcp/config.ts +++ b/mcp/config.ts @@ -6,7 +6,9 @@ const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd(); export function createMcpConfig(githubInstallationToken: string) { const githubRepository = process.env.GITHUB_REPOSITORY; if (!githubRepository) { - throw new Error('GITHUB_REPOSITORY environment variable is required for MCP GitHub integration'); + throw new Error( + "GITHUB_REPOSITORY environment variable is required for MCP GitHub integration" + ); } return JSON.stringify( @@ -18,6 +20,7 @@ export function createMcpConfig(githubInstallationToken: string) { env: { GITHUB_INSTALLATION_TOKEN: githubInstallationToken, GITHUB_REPOSITORY: githubRepository, + LOG_LEVEL: "debug", }, }, }, diff --git a/package.json b/package.json index acec421..0ffd0be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pullfrog/action", - "version": "0.0.20", + "version": "0.0.21", "type": "module", "files": [ "index.js",