Clarify sync-test safety and portable skill assets

This commit is contained in:
gitea committed 2026-09-22 11:50:38 +08:00
1 parent b9533b1b66
commit e0f1724929
4 files changed
+83 -84

No files matched your search

+7 -4
View File
@@ -739,7 +739,13 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
throw new Error(`Failed to recode test approval rules: HTTP ${recodeResult.status}`);
}
// 6. Publish new version in test enterprise
// 6. Sync HoseCloud integrations before publishing the test version. This
// keeps a Hose configuration failure from leaving a newly published
// version behind, although the overall multi-request operation remains
// non-transactional.
const hosecloudSync = await syncHosecloudIntegrationsToTest(prodCorp, testCorp, prodClient, testClient);
// 7. Publish new version in test enterprise
const published = await api.publishApprovalRuleVersion(testClient, versionName);
try {
savePublishedRuleVersionSnapshot(testCorp.id, published.version, createdRules);
@@ -790,9 +796,6 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
});
} catch {}
// 7. Sync hosecloud integrations from prod to test (hose-source corps only)
const hosecloudSync = await syncHosecloudIntegrationsToTest(prodCorp, testCorp, prodClient, testClient);
printJson({
success: true,
syncedAt: new Date().toISOString(),