File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/web/src/features Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ import { isGitRefValid } from './utils';
1010
1111export type Commit = z . infer < typeof commitSchema > ;
1212
13- export interface SearchCommitsResult {
13+ export type ListCommitsResponse = {
1414 commits : Commit [ ] ;
1515 totalCount : number ;
16- }
16+ } ;
1717
1818type ListCommitsRequest = {
1919 repo : string ;
@@ -44,7 +44,7 @@ export const listCommits = async ({
4444 path,
4545 maxCount = 50 ,
4646 skip = 0 ,
47- } : ListCommitsRequest ) : Promise < SearchCommitsResult | ServiceError > => sew ( ( ) =>
47+ } : ListCommitsRequest ) : Promise < ListCommitsResponse | ServiceError > => sew ( ( ) =>
4848 withOptionalAuth ( async ( { org, prisma } ) => {
4949 const repo = await prisma . repo . findFirst ( {
5050 where : {
Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22import { isServiceError } from "@/lib/utils" ;
3- import { listCommits , SearchCommitsResult } from "@/features/git" ;
3+ import { listCommits , ListCommitsResponse } from "@/features/git" ;
44import { ToolDefinition } from "./types" ;
55import { logger } from "./logger" ;
66import description from "./listCommits.txt" ;
@@ -25,7 +25,7 @@ export type ListCommitsRepoInfo = {
2525 codeHostType : CodeHostType ;
2626} ;
2727
28- export type ListCommitsMetadata = SearchCommitsResult & {
28+ export type ListCommitsMetadata = ListCommitsResponse & {
2929 repo : string ;
3030 repoInfo : ListCommitsRepoInfo ;
3131} ;
You can’t perform that action at this time.
0 commit comments