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

umputun / ralphex / 21224950106
79%

Build:
DEFAULT BRANCH: master
Ran 21 Jan 2026 08:41PM UTC
Jobs 1
Files 9
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

21 Jan 2026 08:39PM UTC coverage: 75.284% (-0.1%) from 75.379%
21224950106

push

github

web-flow
Add early dirty worktree check before branch operations (#9)

* add early dirty worktree check before branch operations

detect uncommitted changes before createBranchIfNeeded() attempts
to switch branches. go-git's wt.Checkout() fails with a cryptic error
when the worktree is dirty - this provides a clear error message instead.

- add IsDirty() method to pkg/git that checks for staged changes
  or modified tracked files (untracked files are intentionally ignored
  since they don't prevent checkout)
- call IsDirty() at the start of createBranchIfNeeded() after the
  "already on feature branch" early return
- add table-driven tests covering clean, staged, modified, and
  untracked scenarios

* add test for deleted tracked file in IsDirty

17 of 25 new or added lines in 2 files covered. (68.0%)

1459 of 1938 relevant lines covered (75.28%)

23.17 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
27.88
0.4% cmd/ralphex/main.go
4
70.1
0.78% pkg/git/git.go
Jobs
ID Job ID Ran Files Coverage
1 21224950106.1 21 Jan 2026 08:41PM UTC 9
75.28
GitHub Action Run
Source Files on build 21224950106
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a8b6e53d on github
  • Prev Build on master (#21222990299)
  • Next Build on master (#21225578001)
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