Improve default git urls in `netlify init` prompts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
Which problem is this feature request solving?
When configuring a new site using netlify init, we ask for SSH URLs for private repos. However, we use origin configs as the default URL which is sometimes the HTTP URL. If not carefully following the prompts, you would miss the ssh URL requirement
A possible improvement to this would be:
- Add validation to the prompts by making sure the provided URL is an SSH URL for private repos
- Replace the default https URL with the relevant SSH URL depending on the git provider
- other
Describe the solution you'd like
Better validation and/or improvement around http vs SSH URLs for private repositories
Pull request (optional)
- I can submit a pull request.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the netlify init prompt flow and trace how origin URLs become defaults for private repositories. Run netlify init with a private repository and compare the Git-provider URL handling; done means the prompts suggest the relevant SSH URL and reject an HTTP URL where SSH is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100