netlify / netlify/cli

Improve default git urls in `netlify init` prompts

Open
#4,603 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area: command: init good first issue type: chore
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.