mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Add support for GitHub shorthand repo URLs
This commit is contained in:
1 parent
ee99bb65fc
commit
120d087910
3 files changed
+55
-31
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user