mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Github enterprise support #38
This commit is contained in:
@@ -21,6 +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 options = {
|
||||
method,
|
||||
@@ -30,7 +31,7 @@ export async function githubApiRequest(this: IHookFunctions | IExecuteFunctions,
|
||||
},
|
||||
body,
|
||||
qs: query,
|
||||
uri: `https://api.github.com${endpoint}`,
|
||||
uri: `${baseUrl}${endpoint}`,
|
||||
json: true
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user