Skip to main content

G3

All-in-one CLI to commit your work to Github [Presentation, Design]

Watch the video

Install

pip install g3

Alias

You can, optionally, create the alias g=g3 so that you execute simply g commit and g pr.

Configuration

g3 configure

You will be asked to enter:

  • your Github token
  • your open-ai key
  • the openai model you want to use
  • the temperature which will be used to generate the commit messages and PR descriptions
  • the openai api version
  • the tone which will be used in the commit messages and PR descriptions
  • the commit message max characters
  • the PR description max words

Usage

Commit

g3 commit

Options:

  • --tone: The tone to use
  • --jira: The jira ticket(s) to reference
  • --include: A phrase you want to include
  • --edit: The hash of the commit you want to rephrase

PR

g3 pr

Options:

  • --tone: The tone to use
  • --jira: The jira ticket(s) to reference
  • --include: A phrase you want to include
  • --edit: The number of the PR you want to rephrase

Development

The project requires Python 3.11 and Poetry for dependency management.

Optionally configure poetry to create the virtual environment within the project as follows:

poetry config virtualenvs.in-project true

Build

Now install the project, along with its development dependencies, in a local virtual environment as follows:

poetry install

You may enable the virtual environment, so that you run modules without the poetry run prefix, as follows:

source `poetry env info -p`/bin/activate

or simply as follows:

poetry shell

Contribution

You are expected to enable pre-commit hooks so that you get your code auto-sanitized before being committed.

  • mypy: Static type checker of variables and functions based on PEP 484
  • isort: Optimizes imports
  • black: Opinionated code formatter based on PEP 8
  • flake8: Improves code style and quality based on PEP 8

Install pre-commit before starting to contribute to the project as follows:

pre-commit install

Metadata

Release files for g3 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for g3 0.5.0
File Size Uploaded
g3-0.5.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for g3 0.5.0
File Interpreter ABI Platform
g3-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.2 kB

Release files / g3-0.5.0.tar.gz

Download URL g3-0.5.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b846c42cffb57c24ca87b6c919b56acd9b193d25739342b057f7a77f899ff441
BLAKE2b-256 checksum
How to use checksums
3693b51817becd8ba8e84e843b8a97e6a1bab7180012ae93b3c8ffb80085ed0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release files / g3-0.5.0-py3-none-any.whl

Download URL g3-0.5.0-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d545a45dd0e3690be3359c1ef73ed019928e990c3df0d8a2f5bdade72134a98f
BLAKE2b-256 checksum
How to use checksums
a3a89a4ac045cfe35b1b5a4cc9d28b79f57a03e1e1f39ec1d9953fc7fbca6312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page