fix(Gitlab Node): Author name and email not being set (#11077)

This commit is contained in:
pemontto 2024-10-09 08:35:43 +01:00 committed by GitHub
parent 0eee5dfd59
commit fce1233b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;