fix(worktree): fail closed on required repository refresh (#3023)

This commit is contained in:
Carlos Florêncio
2026-08-26 08:54:31 +00:00
committed by GitHub
parent 44989d12e8
commit 527cf1e9fa
57 changed files with 2990 additions and 247 deletions
+5
View File
@@ -804,6 +804,7 @@ export class ApiClient {
provider_host?: string;
provider_owner?: string;
provider_name?: string;
pull_before_worktree?: boolean;
},
): Promise<{ id: string }> {
return this.request("POST", `/api/v1/workspaces/${workspaceId}/repositories`, {
@@ -815,6 +816,9 @@ export class ApiClient {
...(opts?.provider_host ? { provider_host: opts.provider_host } : {}),
...(opts?.provider_owner ? { provider_owner: opts.provider_owner } : {}),
...(opts?.provider_name ? { provider_name: opts.provider_name } : {}),
...(opts?.pull_before_worktree !== undefined
? { pull_before_worktree: opts.pull_before_worktree }
: {}),
});
}
@@ -909,6 +913,7 @@ export class ApiClient {
repositoryId: string,
updates: {
default_branch?: string;
pull_before_worktree?: boolean;
provider?: string;
provider_repo_id?: string;
provider_host?: string;