Fix vercel build

This commit is contained in:
Colin McDonnell
2026-01-13 08:11:59 +00:00
committed by pullfrog[bot]
parent 84df6bbfb0
commit 280bb7ef15
4 changed files with 55 additions and 21 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
## What is Pullfrog?
Pullfrog is a GitHub bot that brings the full power of your favorite coding agents into GitHub. It's open source and powered by GitHub Actions.
Pullfrog is a GitHub bot that brings the full power of your favorite coding agents into GitHub. It's open source and powered by GitHub Actions.
- **Tag `@pullfrog`** — Tag `@pullfrog` in a comment anywhere in your repo. It will pull in any relevant context using the action's internal MCP server and perform the appropriate task.
- **Prompt from the web** — Trigger arbitrary tasks from the Pullfrog dashboard
+23 -9
View File
@@ -138319,21 +138319,35 @@ function setupGitConfig() {
const repoDir = process.cwd();
log.info("\xBB setting up git configuration...");
try {
execSync2('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe"
});
execSync2('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe"
});
let currentEmail = "";
try {
currentEmail = execSync2("git config user.email", {
cwd: repoDir,
stdio: "pipe",
encoding: "utf-8"
}).trim();
} catch {
}
const shouldSetDefaults = !currentEmail || currentEmail === "github-actions[bot]@users.noreply.github.com";
if (shouldSetDefaults) {
execSync2('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe"
});
execSync2('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe"
});
log.debug("\xBB git user configured (using defaults)");
} else {
log.debug(`\xBB git user already configured (${currentEmail}), skipping`);
}
if (!process.env.GITHUB_ACTIONS) {
execSync2('git config --local credential.helper ""', {
cwd: repoDir,
stdio: "pipe"
});
}
log.debug("\xBB git configuration set successfully (scoped to repo)");
} catch (error50) {
log.warning(
`Failed to set git config: ${error50 instanceof Error ? error50.message : String(error50)}`
+1 -1
View File
@@ -97,7 +97,7 @@ export async function main(inputs: Inputs): Promise<MainResult> {
toolState,
}),
]);
timer.checkpoint("agentSetup+gitAuth");
// phase 6: compute modes
+30 -10
View File
@@ -29,20 +29,41 @@ export function setupTestRepo(options: SetupOptions): void {
/**
* Setup git configuration to avoid identity errors
* Uses --local flag to scope config to the current repo only
* Only sets defaults if not already configured (respects workflow config)
*/
export function setupGitConfig(): void {
const repoDir = process.cwd();
log.info("» setting up git configuration...");
try {
// Use --local to scope config to this repo only, preventing leakage to user's global config
execSync('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe",
});
execSync('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe",
});
// check current config - only set defaults if not configured or using generic bot
let currentEmail = "";
try {
currentEmail = execSync("git config user.email", {
cwd: repoDir,
stdio: "pipe",
encoding: "utf-8",
}).trim();
} catch {
// not configured
}
const shouldSetDefaults =
!currentEmail || currentEmail === "github-actions[bot]@users.noreply.github.com";
if (shouldSetDefaults) {
execSync('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe",
});
execSync('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe",
});
log.debug("» git user configured (using defaults)");
} else {
log.debug(`» git user already configured (${currentEmail}), skipping`);
}
// disable credential helper to prevent macOS keychain prompts when using x-access-token
// only needed locally - GitHub Actions doesn't have this issue
if (!process.env.GITHUB_ACTIONS) {
@@ -51,7 +72,6 @@ export function setupGitConfig(): void {
stdio: "pipe",
});
}
log.debug("» git configuration set successfully (scoped to repo)");
} catch (error) {
// If git config fails, log warning but don't fail the action
// This can happen if we're not in a git repo or git isn't available