Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): stop sending self-hosted Bitbucket repositories to Bitbucket Cloud #14593

ClosedBerkayClik(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/14593/headopened View on GitHub

Showing 4 changed files with 184 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
86 additions and 0 deletionsapps/server/src/pullRequest/PullRequestService.test.tsModified
View file
@@ -2,6 +2,7 @@
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
import * as KeyValueStore from "effect/unstable/persistence/KeyValueStore";
import { assert, it } from "@effect/vitest";
+import * as ConfigProvider from "effect/ConfigProvider";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
@@ -592,6 +593,91 @@
}),
​
+it.effect(
+ "reports a self-hosted Bitbucket as unimplemented instead of asking Bitbucket Cloud",
+ () =>
+ Effect.gen(function* () {
+ const listed: string[] = [];
+ const service = yield* makeService({
+ projects: [
+ project({
+ id: "p1",
+ title: "cloud",
+ workspaceRoot: "/a",
+ repository: "workspace/cloud",
+ provider: "bitbucket",
+ host: "bitbucket.org",
+ }),
+ project({
+ id: "p2",