Sublime Forum

Merge: get the link to make a github pull request when pushing a new branch

#1

When pushing a new branch (git push --set-upstream origin branch-name) to GitHub, they’ll send back a url to create a new PR at:

Enumerating objects: 19, done.
Counting objects: 100% (19/19), done.
Delta compression using up to 4 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 1.54 KiB | 1.54 MiB/s, done.
Total 10 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.        
remote: 
remote: Create a pull request for 'branch-name' on GitHub by visiting:        
remote:      https://github.com/.../pull/new/branch-name        
remote: 
To github.com:....git
 * [new branch]          branch-name -> branch-name
Branch 'branch-name' set up to track remote branch 'branch-name' from 'origin'.

On the CLI I use that url a lot to easily get to that page. It would be great if I can easily get the https://github.com/.../pull/new/branch-name in Sublime Merge after pushing a new branch.

I can imagine it is a bit nasty as it is GitHub specific and not in a standard format. Maybe a solution would be to show any url in the output, except if that url is the .git of the repo itself.

0 Likes

#2

you can vote for something similar here:

1 Like

#3

The future plugin system would be a better place for this type of feature. However, clickable URLs would be a good built-in way to support this:

1 Like