From fce1233b58624d502c9c68f4b32a4bb7d76f1814 Mon Sep 17 00:00:00 2001 From: pemontto <939704+pemontto@users.noreply.github.com> Date: Wed, 9 Oct 2024 08:35:43 +0100 Subject: [PATCH] fix(Gitlab Node): Author name and email not being set (#11077) --- packages/nodes-base/nodes/Gitlab/Gitlab.node.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts index ce61e16b09..88395f2eb8 100644 --- a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts +++ b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts @@ -1606,7 +1606,13 @@ export class Gitlab implements INodeType { body.commit_message = this.getNodeParameter('commitMessage', i) as string; if (additionalParameters.author) { - body.author = additionalParameters.author; + const author = additionalParameters.author as IDataObject; + if (author.name) { + body.author_name = author.name; + } + if (author.email) { + body.author_email = author.email; + } } if ( additionalParameters.branchStart && @@ -1648,7 +1654,13 @@ export class Gitlab implements INodeType { {}, ) as IDataObject; if (additionalParameters.author) { - body.author = additionalParameters.author; + const author = additionalParameters.author as IDataObject; + if (author.name) { + body.author_name = author.name; + } + if (author.email) { + body.author_email = author.email; + } } body.branch = this.getNodeParameter('branch', i) as string; body.commit_message = this.getNodeParameter('commitMessage', i) as string;