Skip to content

Commit daa1f7b

Browse files
fix: remove hardcoded RemoveSourceBranch flag in gitlab gitprovider CreatePullRequest (#3860)
Signed-off-by: BWagenerGenerali [email protected] Signed-off-by: Kent Rancourt <[email protected]> Co-authored-by: Kent Rancourt <[email protected]>
1 parent f79dcad commit daa1f7b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

internal/gitprovider/gitlab/gitlab.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ func (p *provider) CreatePullRequest(
120120
opts = &gitprovider.CreatePullRequestOpts{}
121121
}
122122
glMR, _, err := p.client.CreateMergeRequest(p.projectName, &gitlab.CreateMergeRequestOptions{
123-
Title: &opts.Title,
124-
Description: &opts.Description,
125-
Labels: (*gitlab.LabelOptions)(&opts.Labels),
126-
SourceBranch: &opts.Head,
127-
TargetBranch: &opts.Base,
128-
RemoveSourceBranch: gitlab.Ptr(true),
123+
Title: &opts.Title,
124+
Description: &opts.Description,
125+
Labels: (*gitlab.LabelOptions)(&opts.Labels),
126+
SourceBranch: &opts.Head,
127+
TargetBranch: &opts.Base,
129128
})
130129
if err != nil {
131130
return nil, err

0 commit comments

Comments
 (0)