https://github.com/codeclimate/github_repo_stats
Fetch Stats over accessible Repositories
https://github.com/codeclimate/github_repo_stats
Last synced: 11 months ago
JSON representation
Fetch Stats over accessible Repositories
- Host: GitHub
- URL: https://github.com/codeclimate/github_repo_stats
- Owner: codeclimate
- License: mit
- Created: 2023-06-07T20:11:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T14:32:23.000Z (over 2 years ago)
- Last Synced: 2025-01-11T18:18:41.529Z (about 1 year ago)
- Language: Python
- Size: 136 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fetch Repos Info
## Goal
This script gathers information from the github repos you have access to in your organization.
## Installation
### Using virtual environment
```bash
python3 -m venv fetch-repos
source fetch-repos/bin/activate
pip3 install -r requirements.txt
```
### Global install
```bash
pip3 install --user -r requirements.txt
```
## Configuration
The API token needs the following requirements:
- personal access token classic
- permissions:

### Getting started
```bash
python3 extract_repo_info.py \
-o codeclimate \
-t $TOKEN \
-f ./path.csv
```
| Option | Value | Description |
|---------------------------------|----------------|------------------------------------------------------------------------------------------------------------------------------------|
| -o | string | your organization slug |
| -t | string | the token you want to use to execute the requests. The script requests the organization's team. An elevated user token is required |
| -f | file path | file to export the data to in a CSV format |
| ‑‑append‑only | N/A | flag to resume work from where you left off |
The script will generate a CSV, one line per repository, with data about commits, contribution activity and contributors.