fix(wizard): detect and update git remote from template to user repository #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fix critical setup issue where users clone the blueprint template but git remote still points to the template repository instead of the user's own repository.
Problem
When users clone the blueprint and run the wizard:
alirezarezvani/claude-code-github-workflow(template)Solution
1. Setup Wizard Enhancement (
setup/wizard.sh)Added Step 1.5: Repository Remote Setup:
Flow:
2. Validation Script Enhancement (
setup/validate.sh)Added Section 0: Git Remote Validation (runs first):
git remote set-url origin <your-repo-url>3. Documentation Updates
QUICK_START.md:
gh repo createCOMPLETE_SETUP.md:
Changes
Files Modified:
setup/wizard.sh(+93 lines) - New function + call in main flowsetup/validate.sh(+44 lines) - New validation checkdocs/QUICK_START.md(+11 lines) - Updated cloning instructionsdocs/COMPLETE_SETUP.md(+28 lines) - New step for git remoteTotal: +176 insertions, -2 deletions
Testing
✅ Scenario 1: Fresh clone from template
✅ Scenario 2: Already updated remote
✅ Scenario 3: User declines update
✅ Scenario 4: Validation catches issue
Impact
Before this fix:
After this fix:
Breaking Changes
None - this is additive functionality only.
Related
Closes #[issue-number-if-exists]
This is a critical fix for the blueprint's usability.
Test Plan:
./setup/wizard.sh./setup/validate.sh🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com