refactor: make production gate impact only
Memind CI / Test, build, and release guards (push) Has been cancelled

This commit is contained in:
john
2026-07-28 01:13:28 +08:00
parent 864197162d
commit 7a381db132
14 changed files with 195 additions and 98 deletions
+2 -2
View File
@@ -372,7 +372,7 @@ export async function executeImpactReleaseGate(options) {
}
options.artifact = assertPortalRuntimePath(options.artifact, { repoRoot: ROOT });
if (!options.deployedCommit) {
return executeReleaseGate({ ...options, mode: 'all' });
throw new Error('impact release gate requires --deployed-commit');
}
const catalog = await loadScenarioCatalog({ root: ROOT });
@@ -390,7 +390,7 @@ export async function executeImpactReleaseGate(options) {
...selectImpactScenarios({
catalog,
changedPaths,
forceFullReasons: ancestry.code === 0
blockingReasons: ancestry.code === 0
? []
: [`deployed_commit_not_ancestor:${options.deployedCommit}`],
}),