Skip to content

feat: add git hook integration for automatic commit message generation#29

Merged
artback merged 3 commits into
mainfrom
claude/feature-recommendations-yy9GO
Mar 10, 2026
Merged

feat: add git hook integration for automatic commit message generation#29
artback merged 3 commits into
mainfrom
claude/feature-recommendations-yy9GO

Conversation

@artback
Copy link
Copy Markdown
Owner

@artback artback commented Mar 9, 2026

Add gitai hook install, gitai hook uninstall, and gitai hook status
commands that manage a prepare-commit-msg git hook. When installed, the
hook automatically runs gitai to generate commit messages when users run
git commit without -m. Existing hooks are preserved by appending rather
than overwriting. Set GITAI_SKIP_HOOK=1 to bypass.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 9, 2026

@artback artback changed the title docs: add feature recommendations for gitai improvements feat: add git hook integration for automatic commit message generation Mar 10, 2026
@artback artback force-pushed the claude/feature-recommendations-yy9GO branch from 137d203 to b1468e7 Compare March 10, 2026 05:43
claude added 3 commits March 10, 2026 05:45
Add `gitai hook install`, `gitai hook uninstall`, and `gitai hook status`
commands that manage a prepare-commit-msg git hook. When installed, the
hook automatically runs gitai to generate commit messages when users run
`git commit` without -m. Existing hooks are preserved by appending rather
than overwriting. Set GITAI_SKIP_HOOK=1 to bypass.

https://claude.ai/code/session_015TK3iaRdi1a2BEE9gjxxrX
Wrap all errors returned from external packages (os, hook) with
fmt.Errorf to satisfy the wrapcheck golangci-lint rule.

https://claude.ai/code/session_015TK3iaRdi1a2BEE9gjxxrX
- Replace fmt.Errorf with errors.New for constant error strings (SA1006)
- Use stdout.String() instead of string(stdout.Bytes()) (S1030)
- Remove always-nil error return from resolveRelativePaths (unparam)
- Use t.Fatal instead of t.Error before pointer dereference (SA5011)
- Fix TestDefaultModel to use actual DefaultModel constant
- Fix tests to accept "command not found" when gemini binary is absent

https://claude.ai/code/session_015TK3iaRdi1a2BEE9gjxxrX
@artback artback force-pushed the claude/feature-recommendations-yy9GO branch from b1468e7 to 9f185ea Compare March 10, 2026 05:48
@artback artback merged commit cdea5e9 into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants