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
				
			
		
							
								
								
									
										75
									
								
								nodes/GithubIssues/resources/issue/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								nodes/GithubIssues/resources/issue/index.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,75 @@ | |||
| import type { INodeProperties } from 'n8n-workflow'; | ||||
| import { repoNameSelect, repoOwnerSelect } from '../../shared/descriptions'; | ||||
| import { issueGetManyDescription } from './getAll'; | ||||
| import { issueGetDescription } from './get'; | ||||
| import { issueCreateDescription } from './create'; | ||||
| 
 | ||||
| const showOnlyForIssues = { | ||||
| 	resource: ['issue'], | ||||
| }; | ||||
| 
 | ||||
| export const issueDescription: INodeProperties[] = [ | ||||
| 	{ | ||||
| 		displayName: 'Operation', | ||||
| 		name: 'operation', | ||||
| 		type: 'options', | ||||
| 		noDataExpression: true, | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssues, | ||||
| 		}, | ||||
| 		options: [ | ||||
| 			{ | ||||
| 				name: 'Get Many', | ||||
| 				value: 'getAll', | ||||
| 				action: 'Get issues in a repository', | ||||
| 				description: 'Get many issues in a repository', | ||||
| 				routing: { | ||||
| 					request: { | ||||
| 						method: 'GET', | ||||
| 						url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues', | ||||
| 					}, | ||||
| 				}, | ||||
| 			}, | ||||
| 			{ | ||||
| 				name: 'Get', | ||||
| 				value: 'get', | ||||
| 				action: 'Get an issue', | ||||
| 				description: 'Get the data of a single issue', | ||||
| 				routing: { | ||||
| 					request: { | ||||
| 						method: 'GET', | ||||
| 						url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$parameter.issue}}', | ||||
| 					}, | ||||
| 				}, | ||||
| 			}, | ||||
| 			{ | ||||
| 				name: 'Create', | ||||
| 				value: 'create', | ||||
| 				action: 'Create a new issue', | ||||
| 				description: 'Create a new issue', | ||||
| 				routing: { | ||||
| 					request: { | ||||
| 						method: 'POST', | ||||
| 						url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues', | ||||
| 					}, | ||||
| 				}, | ||||
| 			}, | ||||
| 		], | ||||
| 		default: 'getAll', | ||||
| 	}, | ||||
| 	{ | ||||
| 		...repoOwnerSelect, | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssues, | ||||
| 		}, | ||||
| 	}, | ||||
| 	{ | ||||
| 		...repoNameSelect, | ||||
| 		displayOptions: { | ||||
| 			show: showOnlyForIssues, | ||||
| 		}, | ||||
| 	}, | ||||
| 	...issueGetManyDescription, | ||||
| 	...issueGetDescription, | ||||
| 	...issueCreateDescription, | ||||
| ]; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue