You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(wizard): detect and update git remote from template to user repository
## Problem
When users clone the blueprint template and run the wizard, git remote
still points to the template repository (alirezarezvani/claude-code-github-workflow).
This causes:
- Permission denied when pushing (can't push to template)
- Secrets set on wrong repository
- Workflows run on template instead of user's project
- Users unable to actually use the blueprint
## Solution
Added automatic git remote detection and update in setup wizard:
**1. Setup Wizard Enhancement** (setup/wizard.sh)
- New function: update_git_remote() (Step 1.5)
- Detects if git remote points to template repository
- Prompts user for their repository owner/name
- Updates git remote to user's repository
- Validates the change was successful
- Updates REPO_OWNER and REPO_NAME variables
- Exits if user declines update (must fix manually)
**2. Validation Script Enhancement** (setup/validate.sh)
- New validation: validate_git_remote() (Section 0)
- Checks git remote configuration before other checks
- Fails validation if still pointing to template
- Provides clear error message and fix instructions
- Shows current vs expected remote URL
**3. Documentation Updates**
- QUICK_START.md: Added note about cloning to own repository
- COMPLETE_SETUP.md: Added Step 1.5 "Configure Git Remote"
- Both docs explain why this matters and how to fix
## Impact
- ✅ Users guided to set up correctly from the start
- ✅ Clear error messages if remote not updated
- ✅ Validation catches this issue before other failures
- ✅ Automatic fix via wizard (asks user for repo details)
- ✅ Manual fix instructions provided if user declines
## Testing
- Wizard prompts for repository when template remote detected
- Wizard skips update when remote already correct
- Validation script catches template remote
- Documentation provides clear instructions
Fixes critical setup issue where users couldn't actually use the blueprint.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments