mirror of
https://github.com/open-webui/computer.git
synced 2026-11-18 11:51:55 +03:00
refac
This commit is contained in:
@@ -68,6 +68,12 @@ export const discardChanges = (root: string, files: string[]) =>
|
||||
export const gitCommit = (root: string, message: string) =>
|
||||
fetchJSON('/api/git/commit', jsonBody({ root, message }));
|
||||
|
||||
export const generateGitCommitMessage = (root: string) =>
|
||||
fetchJSON<{ summary: string; description: string }>(
|
||||
'/api/git/message',
|
||||
jsonBody({ root })
|
||||
);
|
||||
|
||||
export const gitPull = (root: string) => fetchJSON('/api/git/pull', jsonBody({ root }));
|
||||
|
||||
export const gitFetch = (root: string) => fetchJSON('/api/git/fetch', jsonBody({ root }));
|
||||
|
||||
Reference in New Issue
Block a user