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

rm-hull / git-commit-summary / 26122658523
34%

Build:
DEFAULT BRANCH: main
Ran 19 May 2026 08:16PM 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

19 May 2026 08:15PM UTC coverage: 33.269% (+0.9%) from 32.419%
26122658523

push

github

web-flow
feat: add automatic version update check (#98)

* feat: add automatic version update check

Implement a startup check that compares the current binary version
against
the latest release on `proxy.golang.org`.

```mermaid
sequenceDiagram
    participant App
    participant UI as Model
    participant API as proxy.golang.org

    App->>UI: Init()
    UI->>UI: checkLatestVersion()
    UI->>API: GET @latest
    API-->>UI: Return latest version
    UI-->>App: latestVersionMsg
    App->>UI: Run() completes
    UI->>App: Notify if update available
```

* fix: improve error reporting for version check

Return a descriptive error instead of an undefined variable when the
latest version check API returns a non-200 status code.

* refactor: sort imports in openrouter.go

Reorder imports to follow standard Go formatting conventions by placing
third-party packages together.

* refactor: improve version check and add tests

* Refactor `CheckLatest` to support testability by extracting
configuration
  to package-level variables.
* Export `LatestResponse` and `Origin` structs.
* Add comprehensive unit tests using `httptest` to verify version
comparison
  logic and error handling.

```mermaid
sequenceDiagram
    participant App
    participant Proxy as proxy.golang.org
    App->>Proxy: GET /@latest
    Proxy-->>App: Return JSON (LatestResponse)
    App->>App: Compare semantic versions
    App-->>App: Return newer version or empty string
```

* refactor: simplify version check test setup

Introduce `setupLatestTestServer` to encapsulate repetitive test
boilerplate, including server lifecycle management and package variable
patching. This improves test readability and ensures cleaner resource
cleanup using `t.Cleanup`.

28 of 57 new or added lines in 4 files covered. (49.12%)

344 of 1034 relevant lines covered (33.27%)

0.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
60.82
-4.59% internal/ui/model.go
7
0.0
0.0% internal/app/app.go
7
78.13
internal/version/check.go
1
0.0
0.0% main.go
Jobs
ID Job ID Ran Files Coverage
1 26122658523.1 19 May 2026 08:16PM UTC 15
33.27
GitHub Action Run
Source Files on build 26122658523
  • Tree
  • List 15
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bf1f8814 on github
  • Prev Build on main (#26082162523)
  • Next Build on main (#26123028762)
  • 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