diff --git a/packages/nodes-base/credentials/GithubApi.credentials.ts b/packages/nodes-base/credentials/GithubApi.credentials.ts index b6ba792e67..94f6fad692 100644 --- a/packages/nodes-base/credentials/GithubApi.credentials.ts +++ b/packages/nodes-base/credentials/GithubApi.credentials.ts @@ -8,10 +8,11 @@ export class GithubApi implements ICredentialType { displayName = 'Github API'; properties = [ { - displayName: 'URL', - name: 'url', + displayName: 'Github Server', + name: 'server', type: 'string' as NodePropertyTypes, default: 'https://api.github.com', + description: 'The server to connect to. Does only have to get changed if Github Enterprise gets used.', }, { displayName: 'User', diff --git a/packages/nodes-base/nodes/Github/GenericFunctions.ts b/packages/nodes-base/nodes/Github/GenericFunctions.ts index 9f1856b2ed..0e20be93f7 100644 --- a/packages/nodes-base/nodes/Github/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Github/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function githubApiRequest(this: IHookFunctions | IExecuteFunctions, if (credentials === undefined) { throw new Error('No credentials got returned!'); } - const baseUrl = credentials!.url || 'https://api.github.com'; + const baseUrl = credentials!.server || 'https://api.github.com'; const options = { method,