mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix gitlab auth and endpoint url
This commit is contained in:
@@ -25,7 +25,7 @@ export async function gitlabApiRequest(this: IHookFunctions | IExecuteFunctions,
|
|||||||
const options = {
|
const options = {
|
||||||
method,
|
method,
|
||||||
headers: {
|
headers: {
|
||||||
'Private-Token': `token ${credentials.accessToken}`,
|
'Private-Token': `${credentials.accessToken}`,
|
||||||
},
|
},
|
||||||
body,
|
body,
|
||||||
qs: query,
|
qs: query,
|
||||||
|
|||||||
@@ -816,7 +816,7 @@ export class Gitlab implements INodeType {
|
|||||||
repository = this.getNodeParameter('repository', i) as string;
|
repository = this.getNodeParameter('repository', i) as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseEndpoint = `/repos/${owner}/${repository}`
|
const baseEndpoint = `/projects/${owner}%2F${repository}`
|
||||||
|
|
||||||
if (resource === 'issue') {
|
if (resource === 'issue') {
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
|
|||||||
Reference in New Issue
Block a user