mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 14:52:27 -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
				
			
		
							
								
								
									
										45
									
								
								credentials/GithubIssuesApi.credentials.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								credentials/GithubIssuesApi.credentials.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,45 @@ | |||
| import type { | ||||
| 	IAuthenticateGeneric, | ||||
| 	Icon, | ||||
| 	ICredentialTestRequest, | ||||
| 	ICredentialType, | ||||
| 	INodeProperties, | ||||
| } from 'n8n-workflow'; | ||||
| 
 | ||||
| export class GithubIssuesApi implements ICredentialType { | ||||
| 	name = 'githubIssuesApi'; | ||||
| 
 | ||||
| 	displayName = 'GitHub Issues API'; | ||||
| 
 | ||||
| 	icon: Icon = { light: 'file:../icons/github.svg', dark: 'file:../icons/github.dark.svg' }; | ||||
| 
 | ||||
| 	documentationUrl = | ||||
| 		'https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#deleting-a-personal-access-token'; | ||||
| 
 | ||||
| 	properties: INodeProperties[] = [ | ||||
| 		{ | ||||
| 			displayName: 'Access Token', | ||||
| 			name: 'accessToken', | ||||
| 			type: 'string', | ||||
| 			typeOptions: { password: true }, | ||||
| 			default: '', | ||||
| 		}, | ||||
| 	]; | ||||
| 
 | ||||
| 	authenticate: IAuthenticateGeneric = { | ||||
| 		type: 'generic', | ||||
| 		properties: { | ||||
| 			headers: { | ||||
| 				Authorization: '=token {{$credentials?.accessToken}}', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}; | ||||
| 
 | ||||
| 	test: ICredentialTestRequest = { | ||||
| 		request: { | ||||
| 			baseURL: 'https://api.github.com', | ||||
| 			url: '/user', | ||||
| 			method: 'GET', | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue