A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4o, gpt-4-turbo, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
MIT License
1.27k
stars
110
forks
source link
build: refactor codebase and improve security #168
.golangci.yml
configuration file with a list of linters and a 3-minute timeout settingcommit.go
to improve readability by breaking long lines of flag definitionscommit.go
with a call to a new functionNewOpenAI
commit.go
from644
to600
when writing theoutputFile
hepler.go
(should behelper.go
)openai.go
file to handle OpenAI client initializationreview.go
and replace it with a call toNewOpenAI
review.go
to improve readability by breaking long lines of flag definitionsgit.go
to remove periods at the endgit.go
from755
to600
when writing the hook file