fix github config

This commit is contained in:
David Blass
2025-11-06 19:05:57 -05:00
parent 7ef44eb254
commit b9c15e9f38
2 changed files with 11 additions and 3 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+8
View File
@@ -41,8 +41,16 @@ export function setupTestRepo(options: SetupOptions): void {
/**
* Setup git configuration to avoid identity errors
* Only runs in GitHub Actions environment to avoid overwriting local git config
*/
export function setupGitConfig(): void {
// Only set up git config in GitHub Actions environment
// In local development, use the user's existing git config
if (!process.env.GITHUB_ACTIONS) {
log.info("⚠️ Skipping git configuration setup (not in GitHub Actions)");
return;
}
log.info("🔧 Setting up git configuration...");
execSync('git config user.email "action@pullfrog.ai"', { stdio: "inherit" });
execSync('git config user.name "Pullfrog Action"', { stdio: "inherit" });