Skip to content

GitLab_Usage_Indicator is a tool designed to retrieve and analyze data from GitLab, such as commits, projects, groups, and more. It generates JSON files containing detailed statistics for use in a graphical interface.

License

Notifications You must be signed in to change notification settings

AntoineB0/GitLab_Usage_Indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab_Usage_Indicator

GitLab_Usage_Indicator is a tool designed to retrieve and analyze data from GitLab, such as commits, projects, groups, and more. It generates JSON files containing detailed statistics for use in a graphical interface.


System Requirements

  • Python: Version 3.10 or higher
  • Dependencies: See the requirements.txt file

Installation Instructions

  1. Make sure Python is installed on your machine:

    python --version
  2. Clone the GitLab repository:

    git clone https://github.com/AntoineB0/GitLab_Usage_Indicator.git
    cd GitLab_Usage_Indicator
  3. Install the required dependencies:

    pip install -r requirements.txt

Quick Start Guide

  1. Add the GitLab environment variables:

    Go to: Settings > CI/CD > Variables

    • CI_MAIL: Email address of the account used to perform commits
    • CI_NAME: Name of the account used to perform commits
    • CI_PUSH_TOKEN: Personal access token of the account used to perform commits
    • CI_PROJECT_PATH: The project path on the GitLab instance
    • PRIVATE_KEY: Private key with administrator read access to the GitLab instance
  2. Set up daily continuous integration

    Go to: Build > Pipeline schedules

    • Create a new schedule
    • Set your time zone
    • In the Interval Pattern, define the time of day to trigger the update
    • Create the pipeline

Main Features

  • GitLab Data Collection:

    • Users (Accounts)
    • Projects (Repositories)
    • Forks
    • Issues
    • Groups
    • Commits
    • Languages
    • Public vs Private distribution
    • Number of SSH keys
    • Number of Gitlab pages activated
  • JSON File Generation:

    • Daily commit data
    • Cumulative commit data
  • CI/CD Pipeline:

    • Automation of JSON file generation and deployment

License

This project is licensed under the GNU GPL v3. See the LICENSE.md file for more details.


Authors and Credits


Development Status

  • Status: Actively in development

About

GitLab_Usage_Indicator is a tool designed to retrieve and analyze data from GitLab, such as commits, projects, groups, and more. It generates JSON files containing detailed statistics for use in a graphical interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published