fix(cli): stop parent traversal at .git boundary #170

Open
xiaoju wants to merge 1 commits from fix/168-git-boundary into main

1 Commits

Author SHA1 Message Date
xiaoju a736f92809 fix(cli): stop parent traversal at .git boundary
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
2026-06-07 15:45:27 +00:00