mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix gitlab auth and endpoint url
This commit is contained in:
parent
34092286bc
commit
2b554db8f3
|
@ -25,7 +25,7 @@ export async function gitlabApiRequest(this: IHookFunctions | IExecuteFunctions,
|
|||
const options = {
|
||||
method,
|
||||
headers: {
|
||||
'Private-Token': `token ${credentials.accessToken}`,
|
||||
'Private-Token': `${credentials.accessToken}`,
|
||||
},
|
||||
body,
|
||||
qs: query,
|
||||
|
|
|
@ -816,7 +816,7 @@ export class Gitlab implements INodeType {
|
|||
repository = this.getNodeParameter('repository', i) as string;
|
||||
}
|
||||
|
||||
const baseEndpoint = `/repos/${owner}/${repository}`
|
||||
const baseEndpoint = `/projects/${owner}%2F${repository}`
|
||||
|
||||
if (resource === 'issue') {
|
||||
if (operation === 'create') {
|
||||
|
|
Loading…
Reference in a new issue