Git Product home page Git Product logo

gitlab-analyser's Introduction

gitlab-analyser

Using the GitLab GraphQL API to generate data about the groups, project, repos, etc for a GitLab endpoint. For stats, repo health, and other fun data analysis.

Currently the analyser will collect basic information about:

  • GitLab Groups, and sub-groups
  • GitLab Projects
    • List of Branches, and their last commits details
    • Pipeline Schedules

Example

The application requires the following environment variables set to know which GitLab GraphQL API endpoint to connect to:

Environment Variables Value
GITLAB_TOKEN A token from GitLab with read permissions on the Groups and Project you want information for. Additional information available at GitLab.
GITLAB_GRAPHQL_ENDPOINT The API endpoint of your GitLab. Example being http://localhost:8080/api/graphql

Options

$ python main.py --help

Usage: main.py [OPTIONS]

Options:
  --generate-data BOOLEAN     Generate new data instead of using saved data
                              [default: True]
  --output-format [html|csv]  Type of output  [default: html]
  --output-directory TEXT     Output location  [default: .]
  --help                      Show this message and exit.

gitlab-analyser's People

Contributors

marjamis avatar dependabot[bot] avatar

Watchers

 avatar Kostas Georgiou avatar

gitlab-analyser's Issues

Customise the group/s and/or projects data that is accessed

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Add a flag that allows for a specific parent group/s or even project/s, to be specified to gather data from rather than assuming its for all projects that the key has access to.

Describe alternatives you've considered
None

Additional context
None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.