Skip to content

wasabina67/auto-commit-message

Repository files navigation

auto-commit-message

Auto commit message

Overview

Generate a short commit message from the result of git status --short.

Example
$ git status --short
A  test1
A  test2
?? test3
$ auto_commit_message
Create test1, test2
$ git status --short
M  README.md
A  test1
A  test2
?? test3
$ auto_commit_message
Update README.md & Create test1, test2
$ git status --short
R  Makefile -> Makefile2
M  README.md
A  test1
A  test2
?? test3
$ auto_commit_message
Update README.md & Create test1, test2 & Rename Makefile -> Makefile2
$ git status --short
R  Makefile -> Makefile2
M  README.md
D  setup.cfg
A  test1
A  test2
?? test3
$ auto_commit_message
Update README.md & Create test1, test2 & Delete setup.cfg & Rename Makefile -> Makefile2

Getting Started

Build Locally

Setup

pipenv shell
pipenv sync --dev

Build

make build

Run

./dist/auto_commit_message
python auto_commit_message.py

Download Binary from Releases

Setup

cd /path/to/your-directory
curl -L -o auto_commit_message https://github.com/wasabina67/auto-commit-message/releases/latest/download/auto_commit_message && \
chmod +x auto_commit_message

Run

./auto_commit_message