mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-08 16:02:30 +00:00
fix(cli): recognize branch-specific folder files in getTypeStrFromPath
The function only matched `folder.meta` but not branch-specific variants like `folder.main.meta` or `folder.dev.meta`. This caused branch-specific folder files to be skipped during sync operations with --branch flag. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
cd061356f8
commit
5f4b4eb845
+2
-1
@@ -289,7 +289,8 @@ export function getTypeStrFromPath(
|
||||
) {
|
||||
return "script";
|
||||
}
|
||||
if (parsed.name === "folder.meta") {
|
||||
// Match folder.meta (base) or folder.<branch>.meta (branch-specific)
|
||||
if (parsed.name === "folder.meta" || /^folder\.[^.]+\.meta$/.test(parsed.name)) {
|
||||
return "folder";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user