fix gitlab auth and endpoint url

This commit is contained in:
Luca Faggianelli 2019-10-17 03:33:52 +02:00
parent 34092286bc
commit 2b554db8f3
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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') {