From b1989ec04cb10062bf0766570bc5c65de606ff6f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 9 Jul 2026 23:22:47 -0500 Subject: [PATCH] refac --- cptr/frontend/src/lib/apis/git.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cptr/frontend/src/lib/apis/git.ts b/cptr/frontend/src/lib/apis/git.ts index 61d8329..e03e315 100644 --- a/cptr/frontend/src/lib/apis/git.ts +++ b/cptr/frontend/src/lib/apis/git.ts @@ -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 }));