Stop init from crashing when the team list is empty - #8531
Hashim1999164 wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change adds Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The empty-team path is guarded before the prompt opens. No actionable merge risk remains beyond normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
2c4c744 to
d7880fa
Compare
|
rebased onto latest main. the empty team list guard is wired through the new @inquirer/prompts select path now. |
Fixes #8355
netlify init with the manual flag asks for a team through an inquirer list. When the account list is empty that prompt reads value on undefined and the command crashes.
The non interactive path already reports that there are no teams. Interactive project create now checks that first so it exits with the same message instead of opening an empty list.