abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
247 stars 17 forks source link

Feature Request: Gitlab Support #348

Open entropitor opened 3 months ago

entropitor commented 3 months ago

It would be nice if git-spice also supported creating Merge Requests in GitLab

If it's not supported, it would also already be helpful to allow pushing all branches in the stack after restacking

abhinav commented 3 months ago

Hello, thanks for the feature request. While I don't have plans to implement this myself in the near future, I would welcome a PR implementing it, and would be willing to work with the contributor to get the PR merged.

For those looking to add GitLab or other code forges, there's space specifically carved out in the architecture to permit this without intrusive code changes:

All GitHub specific details are implemented in the forge/github package for reference.

abhinav commented 3 months ago

RE: this:

If it's not supported, it would also already be helpful to allow pushing all branches in the stack after restacking

That's possible today! You can use the --no-publish flag of the submit commands to push branches without creating PRs. If you have trouble using that with GitLab or non-GitHub forges, please let me know (preferably in a different issue), and we can get that fixed up.

entropitor commented 1 week ago

In the mean time, there is experimental support in GitLab CLI: https://docs.gitlab.com/ee/user/project/merge_requests/stacked_diffs.html