fix(workflow): add --repo flag to tea pr create in worktree dirs #479

Merged
xiaoju merged 1 commits from fix/474-tea-pr-worktree-fix into main 2026-05-24 16:59:37 +00:00
Owner

What

Fixed issue #474 where tea pr create fails in git worktree directories with 'Error: path segment [0] is empty'.

Why

The tea CLI cannot parse repository information when run from a worktree directory (~/repos/workflow-worktrees/fix/...) because worktrees have different internal directory structures than regular git repos.

Changes

  • Updated .workflows/solve-issue.yaml committer prompt to always use --repo uncaged/workflow flag when calling tea pr create
  • Added test case to verify the worktree scenario and validate the updated prompt

Ref

Fixes #474

## What Fixed issue #474 where `tea pr create` fails in git worktree directories with 'Error: path segment [0] is empty'. ## Why The `tea` CLI cannot parse repository information when run from a worktree directory (~/repos/workflow-worktrees/fix/...) because worktrees have different internal directory structures than regular git repos. ## Changes - Updated `.workflows/solve-issue.yaml` committer prompt to always use `--repo uncaged/workflow` flag when calling `tea pr create` - Added test case to verify the worktree scenario and validate the updated prompt ## Ref Fixes #474
xiaoju added 1 commit 2026-05-24 16:57:23 +00:00
xiaoju merged commit 9ab6291a41 into main 2026-05-24 16:59:37 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#479