feat(source-control): add Bitbucket & Azure Devops providers (#2473)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-05-04 00:59:58 -07:00
1 parent d501ebe877
commit 91a03e0747
59 files changed
+5852 -2345

No files matched your search

+7 -3
View File
@@ -11,9 +11,13 @@ const AZURE_DEVOPS_CLI_PR_CHECKOUT_PATTERN = /^az\s+repos\s+pr\s+checkout\s+(.+)
function parseAzureDevOpsCheckoutReference(args: string): string | null {
const parts = args.trim().split(/\s+/).filter(Boolean);
const idFlagIndex = parts.findIndex((part) => part === "--id" || part === "-i");
if (idFlagIndex >= 0) {
return parts[idFlagIndex + 1] ?? null;
for (const [index, part] of parts.entries()) {
if (part === "--id" || part === "-i") {
return parts[index + 1] ?? null;
}
if (part.startsWith("--id=")) {
return part.slice("--id=".length) || null;
}
}
return parts.find((part) => !part.startsWith("-")) ?? null;
}