@devries-cameron20 / t3code Mirror · read-only / commits / 19a2bad155
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 04:30 UTC

fix(azure-devops): legacy DefaultCollection pull request URLs can be pasted to check out (#29763)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Alex Southwell committed Nov 3, 2026 at 23:32 UTC 19a2bad15553a4e1b8bb07350a75c178d390d1fc
2 files changed +6 -1
packages/client-runtime/src/pullRequestLinkInput.test.ts
+5
@@ -159,6 +159,11 @@ describe("parsePullRequestReference", () => {
159 expect(
160 parsePullRequestReference("https://acme.visualstudio.com/project/_git/t3code/pullrequest/42"),
161 ).toBe("https://acme.visualstudio.com/project/_git/t3code/pullrequest/42");
162 + expect(
163 + parsePullRequestReference(
164 + "https://acme.visualstudio.com/DefaultCollection/project/_git/t3code/pullrequest/42",
165 + ),
166 + ).toBe("https://acme.visualstudio.com/DefaultCollection/project/_git/t3code/pullrequest/42");
167 });
168
169 it.each([
packages/source-control-azure-devops/src/shared/definition.ts
+1 -1
@@ -15,7 +15,7 @@ const CHANGE_REQUEST_PATH = /^\/((?:[^/]+\/)*_git\/[^/]+)\/pullrequest\/(\d+)(?:
15 const COMMIT_PATH = /^\/((?:[^/]+\/)*_git\/[^/]+)\/commit\/([0-9a-f]+)\/?$/iu;
16 const CHECKOUT_COMMAND = /^az\s+repos\s+pr\s+checkout\s+(.+)$/i;
17 const CHANGE_REQUEST_REFERENCE =
18 - /^https:\/\/(?:dev\.azure\.com\/[^/\s]+\/[^/\s]+|[^/\s]+\.visualstudio\.com\/[^/\s]+)\/_git\/[^/\s]+\/pullrequest\/(\d+)(?:[/?#].*)?$/i;
18 + /^https:\/\/(?:dev\.azure\.com\/[^/\s]+\/[^/\s]+|[^/\s]+\.visualstudio\.com\/(?:DefaultCollection\/)?[^/\s]+)\/_git\/[^/\s]+\/pullrequest\/(\d+)(?:[/?#].*)?$/i;
19
20 /**
21 * Azure alone addresses one repository under two names that share no part: `ssh.dev.azure.com` and