Skip to content

Commit 09002ca

Browse files
nits
1 parent bd134d9 commit 09002ca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/web/src/features/git/listCommitsApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import { isGitRefValid } from './utils';
1010

1111
export type Commit = z.infer<typeof commitSchema>;
1212

13-
export interface SearchCommitsResult {
13+
export type ListCommitsResponse = {
1414
commits: Commit[];
1515
totalCount: number;
16-
}
16+
};
1717

1818
type 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: {

packages/web/src/features/tools/listCommits.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from "zod";
22
import { isServiceError } from "@/lib/utils";
3-
import { listCommits, SearchCommitsResult } from "@/features/git";
3+
import { listCommits, ListCommitsResponse } from "@/features/git";
44
import { ToolDefinition } from "./types";
55
import { logger } from "./logger";
66
import 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
};

0 commit comments

Comments
 (0)