This commit is contained in:
Timothy Jaeryang Baek
2026-07-09 23:22:47 -05:00
Unverified
parent 5c0b4a6fcb
commit b1989ec04c
+6
View File
@@ -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 }));