mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Add local repository support and permission request handling
This commit is contained in:
1 parent
9a2ebc9652
commit
83834e7ed7
22 files changed
+685
-120
No files matched your search
@@ -2,7 +2,8 @@ import type { Repo } from './types'
|
||||
import { API_BASE_URL } from '@/config'
|
||||
|
||||
export async function createRepo(
|
||||
repoUrl: string,
|
||||
repoUrl?: string,
|
||||
localPath?: string,
|
||||
branch?: string,
|
||||
openCodeConfigName?: string,
|
||||
useWorktree?: boolean
|
||||
@@ -10,7 +11,7 @@ export async function createRepo(
|
||||
const response = await fetch(`${API_BASE_URL}/api/repos`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ repoUrl, branch, openCodeConfigName, useWorktree }),
|
||||
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree }),
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in new issue
Block a user