2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2019-06-23 03:35:23 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class GithubApi implements ICredentialType {
|
|
|
|
name = 'githubApi';
|
|
|
|
displayName = 'Github API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'github';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-04-02 08:05:28 -07:00
|
|
|
{
|
2020-04-03 02:48:34 -07:00
|
|
|
displayName: 'Github Server',
|
|
|
|
name: 'server',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-04-02 08:05:28 -07:00
|
|
|
default: 'https://api.github.com',
|
2021-08-21 05:25:42 -07:00
|
|
|
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',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|