mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
feat(GitLab Node): Add support for pagination on getIssues (#7529)
This commit is contained in:
parent
f1e7ef0117
commit
0a0798e485
|
@ -745,8 +745,8 @@ export class Gitlab implements INodeType {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['release', 'file'],
|
resource: ['release', 'file', 'repository'],
|
||||||
operation: ['getAll', 'list'],
|
operation: ['getAll', 'list', 'getIssues'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -758,8 +758,8 @@ export class Gitlab implements INodeType {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: ['release', 'file'],
|
resource: ['release', 'file', 'repository'],
|
||||||
operation: ['getAll', 'list'],
|
operation: ['getAll', 'list', 'getIssues'],
|
||||||
returnAll: [false],
|
returnAll: [false],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -935,6 +935,13 @@ export class Gitlab implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Return only issues which were created by a specific user',
|
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',
|
displayName: 'Labels',
|
||||||
name: 'labels',
|
name: 'labels',
|
||||||
|
@ -1563,6 +1570,12 @@ export class Gitlab implements INodeType {
|
||||||
|
|
||||||
qs = this.getNodeParameter('getRepositoryIssuesFilters', i) as IDataObject;
|
qs = this.getNodeParameter('getRepositoryIssuesFilters', i) as IDataObject;
|
||||||
|
|
||||||
|
returnAll = this.getNodeParameter('returnAll', 0);
|
||||||
|
|
||||||
|
if (!returnAll) {
|
||||||
|
qs.per_page = this.getNodeParameter('limit', 0);
|
||||||
|
}
|
||||||
|
|
||||||
endpoint = `${baseEndpoint}/issues`;
|
endpoint = `${baseEndpoint}/issues`;
|
||||||
}
|
}
|
||||||
} else if (resource === 'user') {
|
} else if (resource === 'user') {
|
||||||
|
|
Loading…
Reference in a new issue