mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Gitlab Node): Author name and email not being set (#11077)
This commit is contained in:
@@ -1606,7 +1606,13 @@ export class Gitlab implements INodeType {
|
|||||||
body.commit_message = this.getNodeParameter('commitMessage', i) as string;
|
body.commit_message = this.getNodeParameter('commitMessage', i) as string;
|
||||||
|
|
||||||
if (additionalParameters.author) {
|
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 (
|
if (
|
||||||
additionalParameters.branchStart &&
|
additionalParameters.branchStart &&
|
||||||
@@ -1648,7 +1654,13 @@ export class Gitlab implements INodeType {
|
|||||||
{},
|
{},
|
||||||
) as IDataObject;
|
) as IDataObject;
|
||||||
if (additionalParameters.author) {
|
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.branch = this.getNodeParameter('branch', i) as string;
|
||||||
body.commit_message = this.getNodeParameter('commitMessage', i) as string;
|
body.commit_message = this.getNodeParameter('commitMessage', i) as string;
|
||||||
|
|||||||
Reference in New Issue
Block a user