phylum-dev / cli

Command line interface for the Phylum API
https://phylum.io
GNU General Public License v3.0
99 stars 10 forks source link

Use git info to pre-populate repo url in `ph init` #1465

Open furi0us333 opened 4 days ago

furi0us333 commented 4 days ago

Overview

The init command has defaults for most things except the repo URL. The idea is to consider using the local git to check for a specified remote that init can use as the default value for repo url.

Acceptance Criteria

cd-work commented 2 days ago

All my repositories are cloned through ssh, I'd expect this to be the case for most repositories. Do you want to suggest git@github.com:phylum-dev/cli as repository url in these cases? The existing URLs I've seen were largely HTTP uris.

furi0us333 commented 2 days ago

I am thinking HTTP is the way to go here. I am a bit indifferent on this feature and don't have a clear objective, it was just a general idea I heard. This is very low priority.