n8n/packages/nodes-base/credentials/GithubApi.credentials.ts

32 lines
639 B
TypeScript
Raw Normal View History

2019-06-23 03:35:23 -07:00
import {
ICredentialType,
INodeProperties,
2019-06-23 03:35:23 -07:00
} from 'n8n-workflow';
export class GithubApi implements ICredentialType {
name = 'githubApi';
displayName = 'Github API';
documentationUrl = 'github';
properties: INodeProperties[] = [
2020-04-02 08:05:28 -07:00
{
displayName: 'Github Server',
name: 'server',
type: 'string',
2020-04-02 08:05:28 -07:00
default: 'https://api.github.com',
description: 'The server to connect to. Only has to be set if Github Enterprise is used.',
2020-04-02 08:05:28 -07:00
},
2019-06-23 03:35:23 -07:00
{
displayName: 'User',
name: 'user',
type: 'string',
2019-06-23 03:35:23 -07:00
default: '',
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
2019-06-23 03:35:23 -07:00
default: '',
},
];
}