Compare commits

..

1 Commits

Author SHA1 Message Date
ssalbdivad 314f669f10 add debug logging 2025-10-09 19:28:00 -04:00
3 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -25508,7 +25508,9 @@ var actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
function createMcpConfig(githubInstallationToken) { function createMcpConfig(githubInstallationToken) {
const githubRepository = process.env.GITHUB_REPOSITORY; const githubRepository = process.env.GITHUB_REPOSITORY;
if (!githubRepository) { 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( return JSON.stringify(
{ {
@@ -25518,7 +25520,8 @@ function createMcpConfig(githubInstallationToken) {
args: [`${actionPath}/mcp/server.ts`], args: [`${actionPath}/mcp/server.ts`],
env: { env: {
GITHUB_INSTALLATION_TOKEN: githubInstallationToken, GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
GITHUB_REPOSITORY: githubRepository GITHUB_REPOSITORY: githubRepository,
LOG_LEVEL: "debug"
} }
} }
} }
+4 -1
View File
@@ -6,7 +6,9 @@ const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
export function createMcpConfig(githubInstallationToken: string) { export function createMcpConfig(githubInstallationToken: string) {
const githubRepository = process.env.GITHUB_REPOSITORY; const githubRepository = process.env.GITHUB_REPOSITORY;
if (!githubRepository) { 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( return JSON.stringify(
@@ -18,6 +20,7 @@ export function createMcpConfig(githubInstallationToken: string) {
env: { env: {
GITHUB_INSTALLATION_TOKEN: githubInstallationToken, GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
GITHUB_REPOSITORY: githubRepository, GITHUB_REPOSITORY: githubRepository,
LOG_LEVEL: "debug",
}, },
}, },
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@pullfrog/action", "name": "@pullfrog/action",
"version": "0.0.20", "version": "0.0.21",
"type": "module", "type": "module",
"files": [ "files": [
"index.js", "index.js",