feat: added 'with_labels_details' flag and usage

This commit is contained in:
Alberto Maghini 2023-12-19 10:04:22 +01:00
parent 63a6e7e034
commit 1e0f119f77

View file

@ -275,7 +275,6 @@ export class Gitlab implements INodeType {
],
default: 'create',
},
// ----------------------------------
// shared
// ----------------------------------
@ -906,6 +905,19 @@ export class Gitlab implements INodeType {
// ----------------------------------
// repository:getIssues
// ----------------------------------
{
displayName: 'With labels details?',
name: 'withLabelsDetails',
type: 'boolean',
displayOptions: {
show: {
operation: ['getIssues'],
},
},
default: false,
description: 'Whether to retrieve enriched data for labels',
},
{
displayName: 'Filters',
name: 'getRepositoryIssuesFilters',
@ -1576,6 +1588,8 @@ export class Gitlab implements INodeType {
qs.per_page = this.getNodeParameter('limit', 0);
}
qs.with_labels_details = this.getNodeParameter('withLabelsDetails', 0);
endpoint = `${baseEndpoint}/issues`;
}
} else if (resource === 'user') {