Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): resolve prefixed GitLab merge requests to their project #21576

Openjuliusmarmingewants to merge 9 commits intomain fromrefs/pull/21576/headopened View on GitHub

Showing 14 changed files with 102 additions and 31 deletions (loading 12).

x
0 of 14 viewed, 14 left
49 additions and 2 deletionsapps/server/src/mcp/toolkits/pullRequests/handlers.test.tsModified
View file
@@ -5,11 +5,11 @@
ThreadId,
type OrchestrationV2ServerCommand as OrchestrationCommand,
PullRequestOperationError,
+ SourceControlProviderKind,
type OrchestrationProjectShell,
type PullRequestRef,
type PullRequestReviewGuideResult,
type ThreadPullRequestLink,
- SourceControlProviderKind,
} from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as SecureRandom from "effect/crypto/SecureRandom";
@@ -132,6 +132,17 @@
​
+const gitlabProject = makeProject({
+ canonicalKey: "code.example/gitlab/team/subgroup/project",
+ locator: {
+ source: "git-remote",
+ remoteName: "origin",
+ remoteUrl: "git@code.example:gitlab/team/subgroup/project.git",
+ },
+ provider: SourceControlProviderKind.make("gitlab"),
+ displayName: "gitlab/team/subgroup/project",
+});
+​
interface HarnessOptions {