Skip to content

The script extract from GitLab all projects in the group, all users in the group and users per project

Notifications You must be signed in to change notification settings

guido-lab/GitLabCollector

Repository files navigation

GitLabCollector

Tasker - Requirements

  1. Write a script that receives a Gitlab group (e.g. gitlab-org) as a mandatory parameter.
  2. The script should extract the following information:
  • All projects in the group
  • All users in the group
  • User per project
  1. The script should store all the above information.
  2. You can use Gitlab’s API (either Graphql or REST) or an external Gitlab client.

Clone Project:

Clone This Project (Make Sure You Have Git Installed)

https://github.com/guido-lab/GitLabCollector.git

How to run

The following command creates a new virtual environment named venv in the current directory:

python -m venv env

Activate virtual environment:

(Mac/Linux) $ source env/bin/activate
(Windows) $ source env/Scripts/activate

Install Dependencies:

pip install -r requirements.txt

Running the script to collect the data from GitLab

python getGitlabGroups.py

Executing the script in terminal, it will ask to add a GitLab Group as parameter (eg. gitlab-org)

After the exection is finishted, in the same directory will be places three CSV with the required data.

About

The script extract from GitLab all projects in the group, all users in the group and users per project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages