mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
further cli improvements
This commit is contained in:
@@ -244,10 +244,7 @@ export async function tryResolveBranchWorkspace(
|
||||
);
|
||||
}
|
||||
|
||||
if (workspaceIdIfForked) {
|
||||
workspaceId = workspaceIdIfForked;
|
||||
log.info(`Inferred workspace id \`${workspaceId}\` from branch name because this is a workspace fork branch (\`${rawBranch}\`). `);
|
||||
}
|
||||
|
||||
|
||||
// Handle multiple profiles - use special branch-aware logic
|
||||
let selectedProfile: Workspace;
|
||||
@@ -291,6 +288,14 @@ export async function tryResolveBranchWorkspace(
|
||||
);
|
||||
|
||||
log.info(colors.green(`Using workspace profile '${selectedProfile.name}' for branch '${currentBranch}'`));
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (workspaceIdIfForked) {
|
||||
selectedProfile.name = `${selectedProfile.name}/${workspaceIdIfForked}`;
|
||||
selectedProfile.workspaceId = workspaceIdIfForked;
|
||||
log.info(`Inferred workspace id \`${workspaceId}\` from branch name because this is a workspace fork branch (\`${rawBranch}\`). `);
|
||||
}
|
||||
|
||||
return selectedProfile;
|
||||
|
||||
Reference in New Issue
Block a user