Skip to content

Commit 314f669

Browse files
committed
add debug logging
1 parent a24275e commit 314f669

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

entry.cjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25508,7 +25508,9 @@ var actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
2550825508
function createMcpConfig(githubInstallationToken) {
2550925509
const githubRepository = process.env.GITHUB_REPOSITORY;
2551025510
if (!githubRepository) {
25511-
throw new Error("GITHUB_REPOSITORY environment variable is required for MCP GitHub integration");
25511+
throw new Error(
25512+
"GITHUB_REPOSITORY environment variable is required for MCP GitHub integration"
25513+
);
2551225514
}
2551325515
return JSON.stringify(
2551425516
{
@@ -25518,7 +25520,8 @@ function createMcpConfig(githubInstallationToken) {
2551825520
args: [`${actionPath}/mcp/server.ts`],
2551925521
env: {
2552025522
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
25521-
GITHUB_REPOSITORY: githubRepository
25523+
GITHUB_REPOSITORY: githubRepository,
25524+
LOG_LEVEL: "debug"
2552225525
}
2552325526
}
2552425527
}

mcp/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
66
export function createMcpConfig(githubInstallationToken: string) {
77
const githubRepository = process.env.GITHUB_REPOSITORY;
88
if (!githubRepository) {
9-
throw new Error('GITHUB_REPOSITORY environment variable is required for MCP GitHub integration');
9+
throw new Error(
10+
"GITHUB_REPOSITORY environment variable is required for MCP GitHub integration"
11+
);
1012
}
1113

1214
return JSON.stringify(
@@ -18,6 +20,7 @@ export function createMcpConfig(githubInstallationToken: string) {
1820
env: {
1921
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
2022
GITHUB_REPOSITORY: githubRepository,
23+
LOG_LEVEL: "debug",
2124
},
2225
},
2326
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pullfrog/action",
3-
"version": "0.0.20",
3+
"version": "0.0.21",
44
"type": "module",
55
"files": [
66
"index.js",

0 commit comments

Comments
 (0)