fix(git): forward status mode to runtimes (#1153)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
committed by
GitHub
co-authored by
Isaac Sanchez
parent
14c0bfe0bc
commit
28f7a52ec8
@@ -35,10 +35,10 @@ export async function handleStandardGitBridgeMessage(message: BridgeMessageInput
|
||||
}
|
||||
|
||||
case 'api:git/status': {
|
||||
const { directory } = (payload || {}) as { directory?: string };
|
||||
const { directory, mode } = (payload || {}) as { directory?: string; mode?: 'light' };
|
||||
const dirError = requireDirectory(id, type, directory);
|
||||
if (dirError) return dirError;
|
||||
const status = await gitService.getGitStatus(directory!);
|
||||
const status = await gitService.getGitStatus(directory!, mode === 'light' ? { mode } : undefined);
|
||||
return { id, type, success: true, data: status };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user