-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squash instead of merge commit #103
Comments
Thanks so much for the suggestion! Yes, I think that is possible, and it would be a nice feature if you'd like to add it. I imagine usage would look something like
Here's how I'd go about adding it... The backend logic for merging happens here Lines 97 to 102 in 9487433
You'd want to set Beyond that, we'd want to make sure it's configurable from the CLI command. We can set the merge method via a flag, and default to the existing behavior. Lines 33 to 36 in 9487433
Lines 18 to 21 in da8630b
|
@nathanleiby thank you for the quick reply. I've opened a pull request, hopefully, that works out? :) See #105 |
@cobraz Thanks for adding support for this feature! I realize that we could also add this feature for Gitlab. Sharing some relevant info below, in case you or someone else would like to add it. During merge, it seems that Gitlab supports
Today in Microplane's Gitlab logic... If a rebase is possible, we will always do it before merging: microplane/merge/mergeGitlab.go Lines 67 to 73 in bc56dbb
We do the merge here (this is where we could pass microplane/merge/mergeGitlab.go Lines 78 to 80 in bc56dbb
Suggested Gitlab approach, to give squash support without breaking anything existing:
|
Re-opening to track the remaining Gitlab work |
Hello 👋
Thank you for this awesome project! I'd love to contribute to this project, and one thing that has bugged me a little is that I have no way to choose which kind of merge I'd like.
I would rather squash and merge than add a merge commit. I'm not sure if it's possible, but I'd love to have a go at it if that is a feature you'd like to see in Microplane!
Thanks again!
The text was updated successfully, but these errors were encountered: