Add support for GitHub shorthand repo URLs

This commit is contained in:
Chris Scott committed 2025-12-27 19:27:37 -05:00
1 parent ee99bb65fc
commit 120d087910
3 files changed
+55 -31

No files matched your search

+13 -10
View File
@@ -83,16 +83,19 @@ export function AddRepoDialog({ open, onOpenChange }: AddRepoDialogProps) {
</div>
{repoType === 'remote' ? (
<div className="space-y-2">
<label className="text-sm text-zinc-400">Repository URL</label>
<Input
placeholder="https://github.com/user/repo.git"
value={repoUrl}
onChange={(e) => setRepoUrl(e.target.value)}
disabled={mutation.isPending}
className="bg-[#1a1a1a] border-[#2a2a2a] text-white placeholder:text-zinc-500"
/>
</div>
<div className="space-y-2">
<label className="text-sm text-zinc-400">Repository URL</label>
<Input
placeholder="owner/repo or https://github.com/user/repo.git"
value={repoUrl}
onChange={(e) => setRepoUrl(e.target.value)}
disabled={mutation.isPending}
className="bg-[#1a1a1a] border-[#2a2a2a] text-white placeholder:text-zinc-500"
/>
<p className="text-xs text-zinc-500">
Full URL or GitHub shorthand format (owner/repo)
</p>
</div>
) : (
<div className="space-y-2">
<label className="text-sm text-zinc-400">Local Path</label>