Update removeSourceBranch option to cater for when not set

Signed-off-by: Aisha Saini <asaini1@jaguarlandrover.com>
Signed-off-by: asaini1 <asaini1@jaguarlandrover.com>
This commit is contained in:
Aisha Saini
2022-05-18 09:56:48 +01:00
committed by asaini1
parent 5b99da51d9
commit f560f836ca
@@ -196,7 +196,9 @@ export const createPublishGitlabMergeRequestAction = (options: {
ctx.input.title,
{
description: ctx.input.description,
removeSourceBranch: ctx.input.removeSourceBranch,
removeSourceBranch: ctx.input.removeSourceBranch
? ctx.input.removeSourceBranch
: false,
},
).then((mergeRequest: { web_url: string }) => {
return mergeRequest.web_url;