zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.1k stars 103 forks source link

`lab mr create` from local branch #841

Closed MartinDelille closed 11 months ago

MartinDelille commented 1 year ago

I'm using both lab and Github cli and one thing that I find very convenient with gh is the ability to create a pull request from a local branch that has not been pushed yet to a remote.

Would it be possible with lab ?

prarit commented 1 year ago

@MartinDelille my apologies for not getting back to you. It's been several months :(

I think we should be able to do that. Does the Github cli auto-detect that the branch hasn't been pushed?

MartinDelille commented 1 year ago

Yes. In fact I'm now using https://gitlab.com/gitlab-org/cli for that.

prarit commented 11 months ago

I dug into this a bit. https://gitlab.com/gitlab-org/cli makes some assumptions about the git layout that may not necessarily be correct for all users. [Aside: that also explains why the gitlab cli tool doesn't always work for me :( ] In the past we have had users who have multiple remotes and 'pushing' to the correct repo becomes questionable.

MartinDelille commented 11 months ago

Ok let's close this issue.