Make GitLab-Node also work with subgroups #142

This commit is contained in:
Jan Oberhauser 2019-12-13 11:43:01 -06:00
parent 3da402a8d4
commit 784aa25df8

View file

@ -836,7 +836,11 @@ export class Gitlab implements INodeType {
qs = {};
// Request the parameters which almost all operations need
const owner = this.getNodeParameter('owner', i) as string;
let owner = this.getNodeParameter('owner', i) as string;
// Replace all slashes to work with subgroups
owner = owner.replace(new RegExp(/\//g), '%2F');
let repository = '';
if (fullOperation !== 'user:getRepositories') {
repository = this.getNodeParameter('repository', i) as string;