paulirish / git-open

Type `git open` to open the GitHub page or website for a repository in your browser.
MIT License
3.29k stars 246 forks source link

Support bitbucket repos cloned with ssh #173

Open prabhu43 opened 3 years ago

prabhu43 commented 3 years ago

If an incorrect URL is opened, please provide the following so we can write a test:

Example clone url:

ssh://git@bitbucket.scm.com/project1/repo1.git

Example branch name:

master

Expected web URL:

https://bitbucket.scm.com/projects/project1/repos/repo1

prabhu43 commented 3 years ago

I will work on this

ptz0n commented 3 years ago

Example clone url:

git clone git@bitbucket.org:org-name/repo-name.git

Example branch name:

branch-name

Expected web URL:

https://bitbucket.org/org-name/repo-name/branch/branch-name