Skip to main content

No project description provided

Project description

gpush

gpush is a command line utility for standardising commit messages using Conventional Commits.

Installation

This package is available for installation via pypi

pip3 install gpush

Usage

When running gpush in a git directory, use gpush to replace your standard git commit && git push commands. gpush will ask three questions to determine detail about your commit and generate a conventionally formatted git commit message.

"gpush_demo"

Local development

To develop locally, execute the pip3 installation in the local directory:

pip3 install .

Alternatively, create an alias in your zshrc file (Use appropriate profile file if you do not use zsh)

echo "alias gpush="python3 /path/to/git/gpush/gpush"" >> ~/.zshrc To start using straight away, source your file

source ~/.zshrc

Unit tests

To run unit tests, execute the following command, you will need to have pytest installed and set environment variable GITHUB_TOKEN to a valid GitHub token that has permissions to create/delete and push to a repository within your account.

make test

The unit tests will create a test repository within your account for each unit test before testing functionality and deleting the repository.

python-semantic-release

gpush generates commit messages that are compliant with python-semantic-release. See example in the GitHub Repository

Project details


Download files

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

Source Distribution

gpush-3.1.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

gpush-3.1.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

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