feat(GitLab Node): Add Additional parameters for File List (#5621)

This commit is contained in:
Bram Kn 2023-04-18 10:19:35 +02:00 committed by GitHub
parent 6b1473c5f3
commit 3810039da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1080,6 +1080,38 @@ export class Gitlab implements INodeType {
default: 1,
description: 'Page of results to display',
},
{
displayName: 'Additional Parameters',
name: 'additionalParameters',
placeholder: 'Add Parameter',
description: 'Additional fields to add',
type: 'collection',
default: {},
displayOptions: {
show: {
resource: ['file'],
operation: ['list'],
},
},
options: [
{
displayName: 'Reference',
name: 'ref',
type: 'string',
default: '',
placeholder: 'main',
description:
'The name of the commit/branch/tag. Default: the repositorys default branch (usually main).',
},
{
displayName: 'Recursive',
name: 'recursive',
type: 'boolean',
default: false,
description: 'Whether or not to get a recursive file tree. Default is false.',
},
],
},
// ----------------------------------
// file:get
@ -1134,9 +1166,9 @@ export class Gitlab implements INodeType {
name: 'reference',
type: 'string',
default: '',
placeholder: 'master',
placeholder: 'main',
description:
'The name of the commit/branch/tag. Default: the repositorys default branch (usually master).',
'The name of the commit/branch/tag. Default: the repositorys default branch (usually main).',
},
],
},
@ -1635,7 +1667,8 @@ export class Gitlab implements INodeType {
requestMethod = 'GET';
const filePath = this.getNodeParameter('filePath', i);
qs = this.getNodeParameter('additionalFields', i, {});
qs = this.getNodeParameter('additionalParameters', i, {}) as IDataObject;
returnAll = this.getNodeParameter('returnAll', i);
if (!returnAll) {