mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 07:12:25 -05:00 
			
		
		
		
	Add nodes generated by the Node CLI, update README
This commit is contained in:
		
					parent
					
						
							
								67ee5b8e80
							
						
					
				
			
			
				commit
				
					
						95f3124b0d
					
				
			
		
					 41 changed files with 8549 additions and 745 deletions
				
			
		
							
								
								
									
										74
									
								
								nodes/GithubIssues/resources/issue/create.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								nodes/GithubIssues/resources/issue/create.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,74 @@ | |||
| import type { INodeProperties } from 'n8n-workflow'; | ||||
| 
 | ||||
| const showOnlyForIssueCreate = { | ||||
| 	operation: ['create'], | ||||
| 	resource: ['issue'], | ||||
| }; | ||||
| 
 | ||||
| export const issueCreateDescription: INodeProperties[] = [ | ||||
| 	{ | ||||
| 		displayName: 'Title', | ||||
| 		name: 'title', | ||||
| 		type: 'string', | ||||
| 		default: '', | ||||
| 		required: true, | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssueCreate, | ||||
| 		}, | ||||
| 		description: 'The title of the issue', | ||||
| 		routing: { | ||||
| 			send: { | ||||
| 				type: 'body', | ||||
| 				property: 'title', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}, | ||||
| 	{ | ||||
| 		displayName: 'Body', | ||||
| 		name: 'body', | ||||
| 		type: 'string', | ||||
| 		typeOptions: { | ||||
| 			rows: 5, | ||||
| 		}, | ||||
| 		default: '', | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssueCreate, | ||||
| 		}, | ||||
| 		description: 'The body of the issue', | ||||
| 		routing: { | ||||
| 			send: { | ||||
| 				type: 'body', | ||||
| 				property: 'body', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}, | ||||
| 	{ | ||||
| 		displayName: 'Labels', | ||||
| 		name: 'labels', | ||||
| 		type: 'collection', | ||||
| 		typeOptions: { | ||||
| 			multipleValues: true, | ||||
| 			multipleValueButtonText: 'Add Label', | ||||
| 		}, | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssueCreate, | ||||
| 		}, | ||||
| 		default: { label: '' }, | ||||
| 		options: [ | ||||
| 			{ | ||||
| 				displayName: 'Label', | ||||
| 				name: 'label', | ||||
| 				type: 'string', | ||||
| 				default: '', | ||||
| 				description: 'Label to add to issue', | ||||
| 			}, | ||||
| 		], | ||||
| 		routing: { | ||||
| 			send: { | ||||
| 				type: 'body', | ||||
| 				property: 'labels', | ||||
| 				value: '={{$value.map((data) => data.label)}}', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}, | ||||
| ]; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue