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

umputun / ralphex / 25181837650
83%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2026 06:16PM UTC
Jobs 1
Files 42
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

30 Apr 2026 06:15PM UTC coverage: 82.617% (-0.06%) from 82.676%
25181837650

push

github

web-flow
feat: add --branch flag to override worktree/branch name (#315)

* feat: add --branch flag to override worktree/branch name

Replaces fragile auto-detection from plan filenames when plan files use
generic names (tasks.md, plan.md) or spec-driven directory layouts where
ExtractBranchName produces wrong or unstable results.

* fix: reduce cyclomatic complexity and add nolint explanation

Extract resolveWorktreePlanFile helper from runWithWorktree to bring
cyclomatic complexity within the linter limit; add explanation to the
nolint:errcheck directive in service_test.go.

* fix: validate branchOverride to prevent path traversal in worktree creation

Reject absolute paths and values that escape .ralphex/worktrees/ when
--branch override is used as a filesystem path element.

* Revert "fix: validate branchOverride to prevent path traversal in worktree creation"

This reverts commit f5cd33630.

* fix: address review feedback on --branch flag implementation

- add EffectiveBranchName() method on Service, eliminating the 4-site
  override-or-extract duplication (preparePlanBranch, CreateWorktreeForPlan,
  runWithWorktree progress logger, CommitPlanFile)
- thread BranchOverride into runPlanMode so --plan --branch=foo no longer
  silently drops the override
- CommitPlanFile now uses current git branch for the commit message instead
  of re-deriving from the plan filename, fixing the mismatch when --branch
  differs from the filename slug
- move branch-override subtests from TestService_RemoveWorktree into
  TestService_CreateWorktreeForPlan and TestService_CreateBranchForPlan
- fix gofmt struct alignment on executePlanRequest.BranchOverride

15 of 66 new or added lines in 2 files covered. (22.73%)

5 existing lines in 3 files now uncovered.

6825 of 8261 relevant lines covered (82.62%)

220.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
49
44.57
-0.48% cmd/ralphex/main.go
2
77.45
-0.06% pkg/git/service.go

Coverage Regressions

Lines Coverage ∆ File
2
44.57
-0.48% cmd/ralphex/main.go
2
81.87
1.55% pkg/web/watcher.go
1
91.1
-0.34% pkg/web/session_manager.go
Jobs
ID Job ID Ran Files Coverage
1 25181837650.1 30 Apr 2026 06:16PM UTC 42
82.62
GitHub Action Run
Source Files on build 25181837650
  • Tree
  • List 42
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 567815d9 on github
  • Prev Build on master (#25180922668)
  • Next Build on master (#25187347413)
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