Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2f8f0e

Browse files
committed
fix: honor parameter value passed
Gitlab allows setting the defaults for MR to delete the source. Alsothe inline help of the CLI suggest that a boolean is expected, but nomatter what value you set, it will always delete.
1 parent9fcd962 commitc2f8f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎gitlab/v4/objects/merge_requests.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ def merge(
312312
data= {}
313313
ifmerge_commit_message:
314314
data["merge_commit_message"]=merge_commit_message
315-
ifshould_remove_source_branch:
316-
data["should_remove_source_branch"]=True
315+
ifshould_remove_source_branchisnotNone:
316+
data["should_remove_source_branch"]=should_remove_source_branch
317317
ifmerge_when_pipeline_succeeds:
318318
data["merge_when_pipeline_succeeds"]=True
319319

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp