a736f92809
CI / check (pull_request) Successful in 2m24s
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
352 B
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.