mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Make GitLab-Node also work with subgroups #142
This commit is contained in:
parent
3da402a8d4
commit
784aa25df8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue