Files
united-workforce/.changeset/git-boundary.md
T
xiaoju a736f92809
CI / check (pull_request) Successful in 2m24s
fix(cli): stop parent traversal at .git boundary
findWorkflowInParents() and discoverProjectWorkflows() now check for .git
(directory or file) after scanning the current directory for workflows and
before moving to the parent. This prevents traversal from escaping the
repository root and picking up unrelated .workflow/ directories in parent
directories.

Both .git as a directory (normal clone) and .git as a file (git worktree)
are treated as boundaries.

Fixes #168
2026-06-07 15:45:27 +00:00

352 B

@united-workforce/cli
@united-workforce/cli
patch

fix: stop parent traversal at .git boundary

findWorkflowInParents() and discoverProjectWorkflows() now stop traversing parent directories when they encounter a .git directory or file (git worktree). This prevents picking up unrelated .workflow/ directories above the repository root in monorepo setups.