We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e9171c commit a2f1efeCopy full SHA for a2f1efe
gitlab.py
@@ -186,6 +186,17 @@ def rawDelete(self, path):
186
def list(self, obj_class, **kwargs):
187
missing = []
188
for k in obj_class.requiredListAttrs:
189
+ if k not in kwargs:
190
+ if k == 'group_id' and 'group' in kwargs:
191
+ name = kwargs['group']
192
+ for g in self.list(Group):
193
+ if g.__dict__['name'] == name:
194
+ kwargs['group_id'] = g.__dict__['id']
195
+ if k == 'project_id' and 'project' in kwargs:
196
+ name = kwargs['project']
197
+ for p in self.list(Project):
198
+ if p.__dict__['path_with_namespace'] == name:
199
+ kwargs['project_id'] = p.__dict__['id']
200
if k not in kwargs:
201
missing.append(k)
202
if missing:
0 commit comments