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

rm-hull / git-commit-summary / 27480572483
31%

Build:
DEFAULT BRANCH: main
Ran 13 Jun 2026 10:09PM UTC
Jobs 1
Files 15
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

13 Jun 2026 10:09PM UTC coverage: 32.619% (-0.6%) from 33.248%
27480572483

push

github

web-flow
feat: include recent commits in LLM context (#129)

* feat: include recent commits in LLM context

Add `RECENT_COMMITS_COUNT` configuration to include recent Git commit
messages in the system prompt. This helps the LLM learn and mimic the
project's preferred commit style.

- Added `RecentCommits` to `GitClient` interface.
- Updated `App` and `Model` to support passing commit history.
- Configured default behavior to fetch the last 5 commits.

* feat: add recent commit count to configuration

- Add `RecentCommitsCount` to configuration with validation
- Update setup wizard to allow configuring recent commit count
- Improve prompt structure using Markdown headers
- Fix git log argument formatting in `RecentCommits`

* fix: handle error during model configuration unmarshal

Add an explicit error check when unmarshalling the models JSON data
in `Load()` to prevent potential nil pointer dereferences or
silent failures.

* chore: add whitespace for readability in git client

Added a blank line after the `Commit` function to improve code structure
 and consistency within `internal/git/client.go`.

* refactor: wrap prompt context in markdown code blocks

Improve LLM prompt structure by wrapping project context and recent
commit examples in code blocks. This helps the model better distinguish
between instructions and provided context data.

```mermaid
graph TD
    A[Generate Summary] --> B{Include Context?}
    B -->|Yes| C[Apply Markdown Formatting]
    C --> D[System Prompt]
    D --> E[LLM Inference]
```

* test: add placeholder for gitDiffMsg test case

Add a new test run block for `gitDiffMsg` in the model update tests
to ensure recent commits are correctly included in the LLM prompt.

* fix: validate RECENT_COMMITS_COUNT environment variable

Return an error if RECENT_COMMITS_COUNT cannot be parsed as an integer,
preventing the application from starting with an invalid configuration.

10 of 56 new or added lines in 6 files covered. (17.86%)

396 of 1214 relevant lines covered (32.62%)

0.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
10.77
-1.84% internal/git/client.go
13
0.0
0.0% internal/setup/wizard.go
9
53.85
-2.13% internal/config/config.go
3
0.0
0.0% internal/app/app.go
1
63.64
1.07% internal/ui/model.go
1
0.0
0.0% main.go
Jobs
ID Job ID Ran Files Coverage
1 27480572483.1 13 Jun 2026 10:09PM UTC 15
32.62
GitHub Action Run
Source Files on build 27480572483
  • Tree
  • List 15
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 09062201 on github
  • Prev Build on main (#27477144529)
  • Next Build on main (#27482025740)
  • 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