seveas / git-spindle

Abandoned command-line interface to GitHub and other central git services
Other
172 stars 35 forks source link

git-lab merge-request should have default upstream branch be project default branch #127

Closed mattiasb closed 7 years ago

mattiasb commented 8 years ago

In GitLab it's possible to set a projects so-called * default branch*. I think it would make sense to make the default upstream branch for git lab merge-request be the default branch of that project instead of just chosing master.

We're using git-flow for most projects at work and have set those projects default branches to develop instead of master.

seveas commented 7 years ago

Hmm, that should already be doing the right thing, it's defaulting to what the api exposes as default_branch. Are you sure that that's configured properly in your repo?

mattiasb commented 7 years ago

I'll try to remember to check that tomorrow! You've been on a roll tonight, that's exciting! :)

mattiasb commented 7 years ago

Tested this now both on gitlab.com and at work. Works like a charm!