diff --git a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts index 67203495c2..f0fb8bfcd6 100644 --- a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts +++ b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts @@ -745,8 +745,8 @@ export class Gitlab implements INodeType { type: 'boolean', displayOptions: { show: { - resource: ['release', 'file'], - operation: ['getAll', 'list'], + resource: ['release', 'file', 'repository'], + operation: ['getAll', 'list', 'getIssues'], }, }, default: false, @@ -758,8 +758,8 @@ export class Gitlab implements INodeType { type: 'number', displayOptions: { show: { - resource: ['release', 'file'], - operation: ['getAll', 'list'], + resource: ['release', 'file', 'repository'], + operation: ['getAll', 'list', 'getIssues'], returnAll: [false], }, }, @@ -935,6 +935,13 @@ export class Gitlab implements INodeType { default: '', description: 'Return only issues which were created by a specific user', }, + { + displayName: 'Search', + name: 'search', + type: 'string', + default: '', + description: 'Search issues against their title and description', + }, { displayName: 'Labels', name: 'labels', @@ -1563,6 +1570,12 @@ export class Gitlab implements INodeType { qs = this.getNodeParameter('getRepositoryIssuesFilters', i) as IDataObject; + returnAll = this.getNodeParameter('returnAll', 0); + + if (!returnAll) { + qs.per_page = this.getNodeParameter('limit', 0); + } + endpoint = `${baseEndpoint}/issues`; } } else if (resource === 'user') {