• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / git-commit-summary / 28684273968
29%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 09:33PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 09:32PM UTC coverage: 29.674% (-1.9%) from 31.551%
28684273968

push

github

web-flow
feat: add support for git prepare-commit-msg hook (#142)

* feat: add support for git prepare-commit-msg hook

Introduced `--install-hook` and `--uninstall-hook` flags to automate
commit message generation via `git commit`. The application now detects
a commit message file argument, allowing it to write generated content
directly to the git buffer instead of triggering an internal commit.

```mermaid
sequenceDiagram
    participant User
    participant Git
    participant Tool

    User->>Git: git commit
    Git->>Tool: trigger prepare-commit-msg
    Tool->>Tool: Generate message
    Tool->>Git: Write message to $1
    Git->>User: Display editor with message
```

* refactor: remove unnecessary exePath from InstallHook

Removed the unused `exePath` parameter from the `InstallHook` function
to simplify the API and align with the current implementation, which
determines the git directory dynamically.

* feat: prevent recursive hooks during commit

Add `GIT_COMMIT_SUMMARY_IGNORE_HOOK` environment variable to prevent
infinite loops when `git-commit-summary` triggers a git commit command
that would otherwise invoke the `prepare-commit-msg` hook again.

```mermaid
sequenceDiagram
    participant User
    participant CLI as git-commit-summary
    participant Git
    participant Hook as prepare-commit-msg

    User->>CLI: Run git commit-summary
    CLI->>Git: git commit (env: IGNORE_HOOK=1)
    Git->>Hook: Execute hook
    Hook->>Hook: Check IGNORE_HOOK
    Hook-->>Git: Exit 0 (Ignore)
    Git-->>CLI: Commit success
```

* Update internal/setup/hooks.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update internal/setup/hooks.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update internal/setup/hooks.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: improve git directory path clean... (continued)

0 of 116 new or added lines in 4 files covered. (0.0%)

419 of 1412 relevant lines covered (29.67%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
49
0.0
internal/setup/hooks.go
37
0.0
0.0% main.go
29
0.0
0.0% internal/app/app.go
1
8.48
-0.05% internal/git/client.go
Jobs
ID Job ID Ran Files Coverage
1 28684273968.1 03 Jul 2026 09:33PM UTC 17
29.67
GitHub Action Run
Source Files on build 28684273968
  • Tree
  • List 17
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f93dddbc on github
  • Prev Build on main (#28683875908)
  • Next Build on main (#28684679464)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc