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

Pulls URL adding `tree/BRANCH` #200

Open CBroz1 opened 1 year ago

CBroz1 commented 1 year ago

Based on the README I would expect

git open -s pulls -p
> https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/pulls

but instead I'm seeing

git open -s pulls -p
> https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/tree/BRANCH/pulls

I installed via npm

npm install --global git-open 
npm view git-open | grep latest
> latest: 3.0.0

Is there some config I need to adjust?

CBroz1 commented 1 year ago

I think this could be fixed by adding an elif to line 182, but someone could probably fine more elegant logic than I

elif [ "$suffix" ]; then
  TRUE
xuoutput commented 7 months ago

bump