fix: remove default arguments for mergerequests.merge()#1818
Conversation
adc9c7c to
d76152e
Compare
The arguments `should_remove_source_branch` and `merge_when_pipeline_succeeds` are optional arguments. We should not be setting any default value for them. https://docs.gitlab.com/ee/api/merge_requests.html#accept-mr Closes: #1750
d76152e to
8e589c4
Compare
Codecov Report
@@ Coverage Diff @@
## main #1818 +/- ##
=======================================
Coverage 92.01% 92.01%
=======================================
Files 76 76
Lines 4799 4799
=======================================
Hits 4416 4416
Misses 383 383
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
As we see in the functional tests this is technically a breaking behavior. But only in the scenarios where In this case, |
|
@nejch I agree. As it is very confusing if the project default is set to remove it but then we are by default not removing it. |
The arguments
should_remove_source_branchandmerge_when_pipeline_succeedsare optional arguments. We should notbe setting any default value for them.
https://docs.gitlab.com/ee/api/merge_requests.html#accept-mr
Closes: #1750