Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: one project can hold several Git repositories #15752

ClosedTr1Fecta-7(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromrefs/pull/15752/headopened View on GitHub

Showing 62 changed files with 170 additions and 1 deletion (loading 60).

x
0 of 62 viewed, 62 left
1 addition and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -173,6 +173,7 @@
[WS_METHODS.vcsRefreshStatus]: AuthOrchestrationReadScope,
[WS_METHODS.gitResolvePullRequest]: AuthOrchestrationReadScope,
[WS_METHODS.vcsListRefs]: AuthOrchestrationReadScope,
+ [WS_METHODS.vcsListRepositories]: AuthOrchestrationReadScope,
[WS_METHODS.reviewGetDiffPreview]: AuthFilesystemReadScope,
[WS_METHODS.reviewGetDiffFileContents]: AuthFilesystemReadScope,
[WS_METHODS.terminalOpen]: AuthTerminalOperateScope,
169 additions and 1 deletionapps/server/src/checkpointing/CheckpointStore.test.tsModified
View file
@@ -110,9 +110,177 @@
const nested = NodePath.join(tmp, "packages", "nested");
yield* fileSystem.makeDirectory(nested, { recursive: true });
const checkpointStore = yield* CheckpointStore.CheckpointStore;
- expect(yield* checkpointStore.isGitRepository(nested)).toBe(true);
+ expect(yield* checkpointStore.isCheckpointable(nested)).toBe(true);
}),
+ describe("multi-repo workspaces", () => {
+ const makeWorkspace = Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const workspace = yield* makeTmpDir("checkpoint-store-workspace-");
+ for (const name of ["api", "web"]) {
+ const repo = NodePath.join(workspace, name);
+ yield* fileSystem.makeDirectory(repo);
+ yield* initRepoWithCommit(repo);
+ }
+ yield* writeTextFile(NodePath.join(workspace, "NOTES.md"), "not in any repository\n");