Skip to content

pre-commit git hooks to use AI to check commit messages

License

Notifications You must be signed in to change notification settings

KoiX1024/commitmsg-ai-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commitmsg-ai-check

pre-commit git hooks to use AI to check commit messages(Support OpenAI-compatible platforms)

git config for ai

git config --add ai.base.url {baseUrl}

git config --add ai.model {model}

git config --add ai.api.key {key}

See pre-commit for instructions

install hook-type must be commit-msg

    pre-commit install --hook-type commit-msg

Sample .pre-commit-config.yaml:

repos:
-   repo: https://github.com/KoiX1024/commitmsg-ai-check
    rev: 1.0.0
    hooks:
    -   id: commitmsg-ai-check

temporarily-disabling-hooks

About

pre-commit git hooks to use AI to check commit messages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages