ejoffe / spr

Stacked Pull Requests on GitHub
MIT License
796 stars 68 forks source link

Feature request: Smarter detection of `githubHost` #218

Open yogurtearl opened 2 years ago

yogurtearl commented 2 years ago

If I do git spr on a repo, it generates a .spr.yml file with defaults.

Using the remote detection in https://github.com/ejoffe/spr/issues/216, we can extract the host name from the push url of the default remote.

Can extract the hostname from the results of this command:

git remote get-url --push  <default_remote>