Skip to main content

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, and feature for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitflow_visualizer-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file gitflow_visualizer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gitflow_visualizer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 710514523bff8856c5896df8eeb622e3e9da67c6db9301446da32a386c623b2f
MD5 fd2394150b0685d4a63672611ca90fc9
BLAKE2b-256 978ca00ebe03132c8c368ddc551a5540548ca4778886a02d476d312d6e11417d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page