diff --git a/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts b/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts index 2a8736d620..c25c051ef5 100644 --- a/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts @@ -19,7 +19,7 @@ import { OptionsWithUri } from 'request'; * @returns {Promise} */ export async function gitlabApiRequest(this: IHookFunctions | IExecuteFunctions, method: string, endpoint: string, body: object, query?: object, option: IDataObject = {}): Promise { // tslint:disable-line:no-any - const options : OptionsWithUri = { + const options: OptionsWithUri = { method, headers: {}, body, @@ -87,9 +87,9 @@ export async function gitlabApiRequestAllItems(this: IHookFunctions | IExecuteFu do { responseData = await gitlabApiRequest.call(this, method, endpoint, body, query, { resolveWithFullResponse: true }); query.page++; - returnData.push.apply(returnData, responseData.body); + returnData.push.apply(returnData, responseData.body); } while ( responseData.headers.link && responseData.headers.link.includes('next') ); return returnData; -} \ No newline at end of file +} diff --git a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts index 0e99f07fa8..08ff633af6 100644 --- a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts +++ b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts @@ -1292,7 +1292,7 @@ export class Gitlab implements INodeType { const id = this.getNodeParameter('projectId', i) as string; qs = this.getNodeParameter('additionalFields', i, {}) as IDataObject; - + returnAll = this.getNodeParameter('returnAll', 0) as boolean; if (returnAll === false) { @@ -1316,7 +1316,7 @@ export class Gitlab implements INodeType { if(body.milestones){ body.milestones = (body.milestones as string).split(','); } - + endpoint = `/projects/${id}/releases/${tagName}`; } } else if (resource === 'repository') { diff --git a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts index 66412981ec..4a8688f6ee 100644 --- a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts +++ b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts @@ -170,7 +170,7 @@ export class GitlabTrigger implements INodeType { const owner = this.getNodeParameter('owner') as string; const repository = this.getNodeParameter('repository') as string; - const path = (`${owner}/${repository}`).replace(/\//g,'%2F'); + const path = (`${owner}/${repository}`).replace(/\//g, '%2F'); const endpoint = `/projects/${path}/hooks/${webhookData.webhookId}`; @@ -207,7 +207,7 @@ export class GitlabTrigger implements INodeType { eventsArray = ['note', 'issues', 'job', 'merge_requests', 'pipeline', 'push', 'tag_push', 'wiki_page']; } - const events: { [key: string]: boolean } = { }; + const events: { [key: string]: boolean } = {}; for (const e of eventsArray) { events[`${e}_events`] = true; } @@ -218,7 +218,7 @@ export class GitlabTrigger implements INodeType { events['push_events'] = false; } - const path = (`${owner}/${repository}`).replace(/\//g,'%2F'); + const path = (`${owner}/${repository}`).replace(/\//g, '%2F'); const endpoint = `/projects/${path}/hooks`; @@ -253,7 +253,7 @@ export class GitlabTrigger implements INodeType { const owner = this.getNodeParameter('owner') as string; const repository = this.getNodeParameter('repository') as string; - const path = (`${owner}/${repository}`).replace(/\//g,'%2F'); + const path = (`${owner}/${repository}`).replace(/\//g, '%2F'); const endpoint = `/projects/${path}/hooks/${webhookData.webhookId}`; const body = {};