josegonzalez/python-gitlab-backup

Add an "Owned" flag?

zaxasheats opened this issue · 1 comments

I searched for a while to find this tool and it's exactly what I was looking for. My use case is for backing up the repos I own on gitlab.com. The current implementation (unless I'm missing something), downloads the project info for every public project on gitlab and then starts to parse them to match the provided namespace. This is probably reasonable on a private gitlab instance but obviously untenable on the public service.

I worked around it by adding owned=True to the client.projects.list call:

items = client.projects.list(as_list=False,owned=True)

This should probably be specified by a command line argument so as not to break backward compatibility.

It would be a great feature request to allow a --owned flag.

Closed by #2.