netlify / cli

Netlify Command Line Interface
http://cli.netlify.com
MIT License
1.58k stars 359 forks source link

feat(sites-create-template): auto-link cloned repo to the created net… #6914

Closed benhancock closed 5 days ago

benhancock commented 3 weeks ago

…lify site

πŸŽ‰ Thanks for submitting a pull request! πŸŽ‰

Summary

Fixes #4438

This PR adds functionality (requested in #4438) to sites:create-template wherein after cloning the newly created repo, the cli will prompt the user asking if they'd like to link the directory to the cloned repo.

This is what the user saw before our changes:

Screenshot 2024-11-04 at 9 03 52β€―AM

This is the dialog the user sees with our changes:

Screenshot 2024-11-04 at 9 03 26β€―AM

This PR also contains tests for the new functionality and error handling, including in the case of a site already being linked to a parent directory.


For us to review and ship your PR efficiently, please perform the following steps:

A picture of a cute animal (not mandatory, but encouraged)