2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class GithubApi implements ICredentialType {
|
|
|
|
name = 'githubApi';
|
|
|
|
displayName = 'Github API';
|
|
|
|
properties = [
|
2020-04-02 08:05:28 -07:00
|
|
|
{
|
2020-04-03 02:48:34 -07:00
|
|
|
displayName: 'Github Server',
|
|
|
|
name: 'server',
|
2020-04-02 08:05:28 -07:00
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: 'https://api.github.com',
|
2020-04-03 02:48:34 -07:00
|
|
|
description: 'The server to connect to. Does only have to get changed if Github Enterprise gets used.',
|
2020-04-02 08:05:28 -07:00
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|