in app/lib/configService.ts [72:101]
static async updateRepoConfig(config: {
url: string;
branch?: string;
}): Promise<{ url: string; branch?: string; message: string }> {
try {
console.warn(
"Repository configuration update ignored (deprecated):",
config
);
const response = await this.fetchWithCredentials(
`/api/config/repository`,
{
method: "PUT",
body: JSON.stringify(config),
}
);
if (!response.ok) {
const errorData = await response.json();
throw new Error(
errorData.error?.message || `HTTP error! status: ${response.status}`
);
}
return await response.json();
} catch (error) {
console.error("Failed to update repo config (deprecated):", error);
throw error;
}
}