feat(mr update): add `--squash-before-merge` parameter
Created by: pataar
Description
This adds the --squash-before-merge
parameter to mr update. Which allows the merge request the be squashed by default.
A point of discussion: I thought it would be practical that this would toggle the option to squash. Not sure what your preference has, @profclems. If you'd like it differently, please let me know!
See: docs.gitlab.com/ee/api/merge_requests.html#update-mr
How Has This Been Tested?
I've used the binary built from this fork against a private Gitlab instance. Worked as expected.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)