Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add remote repository publish and discovery support #2482

Mergedjuliusmarmingemerged 7 commits intomain fromrefs/pull/2482/headmerged by juliusmarminge View on GitHub

Showing 33 changed files with 116 additions and 1 deletion (loading 30).

x
0 of 33 viewed, 33 left
7 additions and 0 deletionsapps/server/src/git/GitManager.test.tsModified
View file
@@ -580,6 +580,13 @@
cwd: input.cwd,
args: ["repo", "view", input.repository, "--json", "nameWithOwner,url,sshUrl"],
}).pipe(Effect.map((result) => JSON.parse(result.stdout))),
+ createRepository: (input) =>
+ Effect.fail(
+ new GitHubCliError({
+ operation: "createRepository",
+ detail: `Unexpected repository create: ${input.repository}`,
+ }),
+ ),
checkoutPullRequest: (input) =>
execute({
cwd: input.cwd,
52 additions and 0 deletionsapps/server/src/sourceControl/GitHubCli.test.tsModified
View file
@@ -211,6 +211,58 @@
}).pipe(Effect.provide(layer)),
​
+ it.effect("creates repositories and parses clone URLs from create output", () =>
+ Effect.gen(function* () {
+ mockRun.mockReturnValueOnce(
+ Effect.succeed(
+ processOutput(
+ "✓ Created repository octocat/codething-mvp on github.com\nhttps://github.com/octocat/codething-mvp\n",
+ ),
+ ),