Skip to content

Commit 253928b

Browse files
feedback
1 parent 5396348 commit 253928b

5 files changed

Lines changed: 3 additions & 9 deletions

File tree

packages/mcp/src/schemas.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ export const fileSourceResponseSchema = z.object({
213213
repoCodeHostType: z.string(),
214214
repoDisplayName: z.string().optional(),
215215
repoExternalWebUrl: z.string().optional(),
216-
branch: z.string().optional(),
217216
webUrl: z.string(),
218217
externalWebUrl: z.string().optional(),
219218
});

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const fileSourceResponseSchema = z.object({
2525
repoCodeHostType: z.nativeEnum(CodeHostType),
2626
repoDisplayName: z.string().optional(),
2727
repoExternalWebUrl: z.string().optional(),
28-
branch: z.string().optional(),
2928
webUrl: z.string(),
3029
externalWebUrl: z.string().optional(),
3130
});
@@ -83,7 +82,6 @@ export const getFileSource = async ({ path: filePath, repo: repoName, ref }: Fil
8382
repoCodeHostType: repo.external_codeHostType,
8483
repoDisplayName: repo.displayName ?? undefined,
8584
repoExternalWebUrl: repo.webUrl ?? undefined,
86-
branch: ref,
8785
webUrl,
8886
externalWebUrl,
8987
} satisfies FileSourceResponse;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { sew } from '@/actions';
22
import { FileTreeItem, fileTreeItemSchema } from "./types";
3-
import { ServiceError, unexpectedError } from '@/lib/serviceError';
3+
import { notFound, ServiceError, unexpectedError } from '@/lib/serviceError';
44
import { withOptionalAuthV2 } from "@/withAuthV2";
55
import { getRepoPath } from '@sourcebot/shared';
6-
import { notFound } from 'next/navigation';
76
import simpleGit from 'simple-git';
87
import z from 'zod';
98
import { logger } from './utils';

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { sew } from '@/actions';
22
import { FileTreeItem } from "./types";
3-
import { unexpectedError } from '@/lib/serviceError';
3+
import { notFound, unexpectedError } from '@/lib/serviceError';
44
import { withOptionalAuthV2 } from "@/withAuthV2";
55
import { getRepoPath } from '@sourcebot/shared';
6-
import { notFound } from 'next/navigation';
76
import simpleGit from 'simple-git';
87
import z from 'zod';
98
import { compareFileTreeItems, isPathValid, logger, normalizePath } from './utils';

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { sew } from '@/actions';
2-
import { ServiceError, unexpectedError } from '@/lib/serviceError';
2+
import { notFound, ServiceError, unexpectedError } from '@/lib/serviceError';
33
import { withOptionalAuthV2 } from "@/withAuthV2";
44
import { getRepoPath } from '@sourcebot/shared';
5-
import { notFound } from 'next/navigation';
65
import simpleGit from 'simple-git';
76
import z from 'zod';
87
import { fileTreeNodeSchema } from './types';

0 commit comments

Comments
 (0)