Visualize GitHub Repository Workflow Activities
Project description
gitflow-visualizer
The gitflow-visualizer is a Python-based tool designed to visually analyze and track the workflow of a GitHub repository. It displays branch activities (e.g., branch creation, deletion, pull request merges) and other important events, allowing teams to easily understand the history of the repository's development process. For more information, see GitHub API - List repository activities.
Features
- Visualize GitHub repository activities such as:
- Branch creation
- Branch deletion
- Pushes and force-pushes
- Pull request merges
- Different colors for each user's activities
- Filter activities by date range
- Highlight active branches
- Abstract branch name like
release,hotfix, andfeaturefor better visualization.
Installation
You can install the latest stable version of gitflow-visualizer from PyPI:
pip install gitflow-visualizer
Or, if you prefer to install the latest development version from the GitHub repository, use:
git clone https://github.com/Verssae/gitflow-visualizer.git
cd gitflow-visualizer
pip install .
GitHub Token
You can pass a GitHub API token directly using the --token option for increased rate limits or to access private repositories.
Alternatively, you can set the GITHUB_TOKEN environment variable, and the tool will use it automatically if --token is not provided.
Usage
Once installed, you can use the tool to visualize a GitHub repository's workflow. Below are some example commands:
gitflow-visualizer https://github.com/SoftClassTeam4/Invaders
gitflow-visualizer https://github.com/SoftClassTeam4/Invaders --start_date 2023-10-17 --end_date 2023-10-19
usage: gitflow-visualizer [-h] [--core_branches [CORE_BRANCHES ...]] [--start_date START_DATE] [--end_date END_DATE] [--token TOKEN] url
Visualize GitHub Repository Workflow Activities
positional arguments:
url GitHub repository URL
options:
-h, --help show this help message and exit
--core_branches [CORE_BRANCHES ...]
List of core branch names. Other branch names would be abstracted (release->R, hotfix->H, feature->F)
--start_date START_DATE
Start date in YYYY-MM-DD format
--end_date END_DATE End date in YYYY-MM-DD format
--token TOKEN GitHub API token
Font Recommendation
For the best visual experience, it is recommended to use the Fira Code font. You can download and install it here or via the following command on macOS:
brew tap homebrew/cask-fonts
brew install font-fira-code-nerd-font
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitflow_visualizer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gitflow_visualizer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
710514523bff8856c5896df8eeb622e3e9da67c6db9301446da32a386c623b2f
|
|
| MD5 |
fd2394150b0685d4a63672611ca90fc9
|
|
| BLAKE2b-256 |
978ca00ebe03132c8c368ddc551a5540548ca4778886a02d476d312d6e11417d
|