@gowthamgts/pi-git-commit
v1.0.0
Published
A pi extension that stages changes and creates a concise AI-written Git commit.
Maintainers
Readme
pi-git-commit
A pi extension that stages the current Git changes and commits them with a concise AI-written subject.
Usage
Run:
/commitThe command:
- stages tracked, untracked, and deleted files with
git add -A - sends the staged diff to the currently selected model
- creates a commit with the generated subject
Subjects are lowercase, imperative, free of trailing punctuation, and limited to 40 characters. If generation or git commit fails, the changes remain staged.
Install
From npm:
pi install npm:@gowthamgts/pi-git-commitFrom this repository:
pi install ./extensions/git-commitOr try it without installing:
pi -e ./extensions/git-commit/index.tsDevelopment
From this extension's directory:
pnpm test
pnpm run check:load