mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3243)
* ✏️ Alphabetize rules * 🔖 Update version * ⚡ Update lintfix command * ⚡ Run baseline lintfix * 📦 Update package-lock.json * 👕 Apply `node-param-description-untrimmed` (#3200) * Removing unneeded backticks (#3249) * 👕 Apply node-param-description-wrong-for-return-all (#3253) * 👕 Apply node-param-description-missing-limit (#3252) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-excess-final-period (#3250) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-unencoded-angle-brackets (#3256) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-url-missing-protocol (#3258) * 👕 Apply `node-param-description-miscased-id` (#3254) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-limit (#3257) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261) * 👕 Apply rule * ⚡ Restore lintfix script * ⚡ Restore lintfix script Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
This commit is contained in:
@@ -247,7 +247,7 @@ export class Gitlab implements INodeType {
|
||||
default: '',
|
||||
required: true,
|
||||
placeholder: 'n8n-io',
|
||||
description: 'User, group or namespace of the project.',
|
||||
description: 'User, group or namespace of the project',
|
||||
},
|
||||
{
|
||||
displayName: 'Project Name',
|
||||
@@ -266,7 +266,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
},
|
||||
placeholder: 'n8n',
|
||||
description: 'The name of the project.',
|
||||
description: 'The name of the project',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -292,7 +292,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The title of the issue.',
|
||||
description: 'The title of the issue',
|
||||
},
|
||||
{
|
||||
displayName: 'Body',
|
||||
@@ -312,7 +312,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The body of the issue.',
|
||||
description: 'The body of the issue',
|
||||
},
|
||||
{
|
||||
displayName: 'Due Date',
|
||||
@@ -329,7 +329,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Due Date for issue.',
|
||||
description: 'Due Date for issue',
|
||||
},
|
||||
{
|
||||
displayName: 'Labels',
|
||||
@@ -356,7 +356,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'label',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Label to add to issue.',
|
||||
description: 'Label to add to issue',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -385,7 +385,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'assignee',
|
||||
type: 'number',
|
||||
default: 0,
|
||||
description: 'User ID to assign issue to.',
|
||||
description: 'User ID to assign issue to',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -410,7 +410,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The number of the issue on which to create the comment on.',
|
||||
description: 'The number of the issue on which to create the comment on',
|
||||
},
|
||||
{
|
||||
displayName: 'Body',
|
||||
@@ -430,7 +430,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The body of the comment.',
|
||||
description: 'The body of the comment',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -452,7 +452,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The number of the issue edit.',
|
||||
description: 'The number of the issue edit',
|
||||
},
|
||||
{
|
||||
displayName: 'Edit Fields',
|
||||
@@ -478,7 +478,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The title of the issue.',
|
||||
description: 'The title of the issue',
|
||||
},
|
||||
{
|
||||
displayName: 'Body',
|
||||
@@ -488,7 +488,7 @@ export class Gitlab implements INodeType {
|
||||
rows: 5,
|
||||
},
|
||||
default: '',
|
||||
description: 'The body of the issue.',
|
||||
description: 'The body of the issue',
|
||||
},
|
||||
{
|
||||
displayName: 'State',
|
||||
@@ -507,7 +507,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'open',
|
||||
description: 'The state to set.',
|
||||
description: 'The state to set',
|
||||
},
|
||||
{
|
||||
displayName: 'Labels',
|
||||
@@ -524,7 +524,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'label',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Label to add to issue.',
|
||||
description: 'Label to add to issue',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -543,7 +543,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'assignee',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'User to assign issue too.',
|
||||
description: 'User to assign issue too',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -552,7 +552,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'due_date',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Due Date for issue.',
|
||||
description: 'Due Date for issue',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -576,7 +576,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The number of the issue get data of.',
|
||||
description: 'The number of the issue get data of',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -598,7 +598,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The number of the issue to lock.',
|
||||
description: 'The number of the issue to lock',
|
||||
},
|
||||
{
|
||||
displayName: 'Lock Reason',
|
||||
@@ -637,7 +637,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'resolved',
|
||||
description: 'The reason to lock the issue.',
|
||||
description: 'The reason to lock the issue',
|
||||
},
|
||||
|
||||
|
||||
@@ -665,7 +665,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The tag of the release.',
|
||||
description: 'The tag of the release',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -691,7 +691,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The name of the release.',
|
||||
description: 'The name of the release',
|
||||
},
|
||||
{
|
||||
displayName: 'Description',
|
||||
@@ -701,7 +701,7 @@ export class Gitlab implements INodeType {
|
||||
rows: 5,
|
||||
},
|
||||
default: '',
|
||||
description: 'The description of the release.',
|
||||
description: 'The description of the release',
|
||||
},
|
||||
{
|
||||
displayName: 'Ref',
|
||||
@@ -733,7 +733,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The ID or URL-encoded path of the project.',
|
||||
description: 'The ID or URL-encoded path of the project',
|
||||
},
|
||||
{
|
||||
displayName: 'Tag Name',
|
||||
@@ -752,7 +752,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The Git tag the release is associated with.',
|
||||
description: 'The Git tag the release is associated with',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -774,7 +774,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The ID or URL-encoded path of the project.',
|
||||
description: 'The ID or URL-encoded path of the project',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -791,7 +791,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
description: 'Whether to return all results or only up to a given limit',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
@@ -815,7 +815,7 @@ export class Gitlab implements INodeType {
|
||||
maxValue: 100,
|
||||
},
|
||||
default: 20,
|
||||
description: 'How many results to return.',
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -851,7 +851,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'released_at',
|
||||
description: 'The field to use as order.',
|
||||
description: 'The field to use as order',
|
||||
},
|
||||
{
|
||||
displayName: 'Sort',
|
||||
@@ -892,7 +892,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The ID or URL-encoded path of the project.',
|
||||
description: 'The ID or URL-encoded path of the project',
|
||||
},
|
||||
{
|
||||
displayName: 'Tag Name',
|
||||
@@ -910,7 +910,7 @@ export class Gitlab implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The Git tag the release is associated with.',
|
||||
description: 'The Git tag the release is associated with',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -936,7 +936,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The release name.',
|
||||
description: 'The release name',
|
||||
},
|
||||
{
|
||||
displayName: 'Description',
|
||||
@@ -950,14 +950,14 @@ export class Gitlab implements INodeType {
|
||||
name: 'milestones',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The title of each milestone to associate with the release (provide a titles list spearated with comma).',
|
||||
description: 'The title of each milestone to associate with the release (provide a titles list spearated with comma)',
|
||||
},
|
||||
{
|
||||
displayName: 'Released At',
|
||||
name: 'released_at',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'The date when the release is/was ready..',
|
||||
description: 'The date when the release is/was ready',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -992,14 +992,14 @@ export class Gitlab implements INodeType {
|
||||
name: 'assignee_username',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Return only issues which are assigned to a specific user.',
|
||||
description: 'Return only issues which are assigned to a specific user',
|
||||
},
|
||||
{
|
||||
displayName: 'Creator',
|
||||
name: 'author_username',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Return only issues which were created by a specific user.',
|
||||
description: 'Return only issues which were created by a specific user',
|
||||
},
|
||||
{
|
||||
displayName: 'Labels',
|
||||
@@ -1013,7 +1013,7 @@ export class Gitlab implements INodeType {
|
||||
name: 'updated_after',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Return only issues updated at or after this time.',
|
||||
description: 'Return only issues updated at or after this time',
|
||||
},
|
||||
{
|
||||
displayName: 'State',
|
||||
@@ -1037,7 +1037,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'opened',
|
||||
description: 'The state to filter by.',
|
||||
description: 'The state to filter by',
|
||||
},
|
||||
{
|
||||
displayName: 'Sort',
|
||||
@@ -1047,21 +1047,21 @@ export class Gitlab implements INodeType {
|
||||
{
|
||||
name: 'Created At',
|
||||
value: 'created_at',
|
||||
description: 'Sort by created date.',
|
||||
description: 'Sort by created date',
|
||||
},
|
||||
{
|
||||
name: 'Updated At',
|
||||
value: 'updated_at',
|
||||
description: 'Sort by updated date.',
|
||||
description: 'Sort by updated date',
|
||||
},
|
||||
{
|
||||
name: 'Priority',
|
||||
value: 'priority',
|
||||
description: 'Sort by priority.',
|
||||
description: 'Sort by priority',
|
||||
},
|
||||
],
|
||||
default: 'created_at',
|
||||
description: 'The order the issues should be returned in.',
|
||||
description: 'The order the issues should be returned in',
|
||||
},
|
||||
{
|
||||
displayName: 'Direction',
|
||||
@@ -1080,7 +1080,7 @@ export class Gitlab implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'desc',
|
||||
description: 'The sort order.',
|
||||
description: 'The sort order',
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
@@ -20,62 +20,62 @@ const GITLAB_EVENTS = [
|
||||
{
|
||||
name: 'Comment',
|
||||
value: 'note',
|
||||
description: 'Triggered when a new comment is made on commits, merge requests, issues, and code snippets.',
|
||||
description: 'Triggered when a new comment is made on commits, merge requests, issues, and code snippets',
|
||||
},
|
||||
{
|
||||
name: 'Confidential Issues',
|
||||
value: 'confidential_issues',
|
||||
description: 'Triggered on confidential issues\' events.',
|
||||
description: 'Triggered on confidential issues\' events',
|
||||
},
|
||||
{
|
||||
name: 'Confidential Comments',
|
||||
value: 'confidential_note',
|
||||
description: 'Triggered when a confidential comment is made.',
|
||||
description: 'Triggered when a confidential comment is made',
|
||||
},
|
||||
{
|
||||
name: 'Deployments',
|
||||
value: 'deployment',
|
||||
description: 'Triggered when a deployment starts/succeeds/fails/is cancelled.',
|
||||
description: 'Triggered when a deployment starts/succeeds/fails/is cancelled',
|
||||
},
|
||||
{
|
||||
name: 'Issue',
|
||||
value: 'issues',
|
||||
description: 'Triggered when a new issue is created or an existing issue was updated/closed/reopened.',
|
||||
description: 'Triggered when a new issue is created or an existing issue was updated/closed/reopened',
|
||||
},
|
||||
{
|
||||
name: 'Job',
|
||||
value: 'job',
|
||||
description: 'Triggered on status change of a job.',
|
||||
description: 'Triggered on status change of a job',
|
||||
},
|
||||
{
|
||||
name: 'Merge Request',
|
||||
value: 'merge_requests',
|
||||
description: 'Triggered when a new merge request is created, an existing merge request was updated/merged/closed or a commit is added in the source branch.',
|
||||
description: 'Triggered when a new merge request is created, an existing merge request was updated/merged/closed or a commit is added in the source branch',
|
||||
},
|
||||
{
|
||||
name: 'Pipeline',
|
||||
value: 'pipeline',
|
||||
description: 'Triggered on status change of Pipeline.',
|
||||
description: 'Triggered on status change of Pipeline',
|
||||
},
|
||||
{
|
||||
name: 'Push',
|
||||
value: 'push',
|
||||
description: 'Triggered when you push to the repository except when pushing tags.',
|
||||
description: 'Triggered when you push to the repository except when pushing tags',
|
||||
},
|
||||
{
|
||||
name: 'Release',
|
||||
value: 'releases',
|
||||
description: 'Release events are triggered when a release is created or updated.',
|
||||
description: 'Release events are triggered when a release is created or updated',
|
||||
},
|
||||
{
|
||||
name: 'Tag',
|
||||
value: 'tag_push',
|
||||
description: 'Triggered when you create (or delete) tags to the repository.',
|
||||
description: 'Triggered when you create (or delete) tags to the repository',
|
||||
},
|
||||
{
|
||||
name: 'Wiki Page',
|
||||
value: 'wiki_page',
|
||||
description: 'Triggered when a wiki page is created, updated or deleted.',
|
||||
description: 'Triggered when a wiki page is created, updated or deleted',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -150,7 +150,7 @@ export class GitlabTrigger implements INodeType {
|
||||
default: '',
|
||||
required: true,
|
||||
placeholder: 'n8n-io',
|
||||
description: 'Owner of the repsitory.',
|
||||
description: 'Owner of the repsitory',
|
||||
},
|
||||
{
|
||||
displayName: 'Repository Name',
|
||||
@@ -159,7 +159,7 @@ export class GitlabTrigger implements INodeType {
|
||||
default: '',
|
||||
required: true,
|
||||
placeholder: 'n8n',
|
||||
description: 'The name of the repsitory.',
|
||||
description: 'The name of the repsitory',
|
||||
},
|
||||
{
|
||||
displayName: 'Events',
|
||||
@@ -170,12 +170,12 @@ export class GitlabTrigger implements INodeType {
|
||||
{
|
||||
name: '*',
|
||||
value: '*',
|
||||
description: 'Any time any event is triggered (Wildcard Event).',
|
||||
description: 'Any time any event is triggered (Wildcard Event)',
|
||||
},
|
||||
],
|
||||
required: true,
|
||||
default: [],
|
||||
description: 'The events to listen to.',
|
||||
description: 'The events to listen to',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user