fix(cicd): add branch follower refresh gate

This commit is contained in:
Codex
2026-07-04 11:30:54 +00:00
parent 09d7633f3d
commit 08d5e91c5e
5 changed files with 191 additions and 5 deletions
+2 -2
View File
@@ -213,8 +213,8 @@ function debugStepOption(value: string): BranchFollowerDebugStep {
}
function gateOption(value: string): BranchFollowerGate {
if (value === "reuse-plan" || value === "ci-taskrun-plan" || value === "cd-rollout-plan" || value === "post-deploy-health") return value;
throw new Error("--gate must be reuse-plan, ci-taskrun-plan, cd-rollout-plan, or post-deploy-health");
if (value === "reuse-plan" || value === "ci-taskrun-plan" || value === "cd-rollout-plan" || value === "post-deploy-health" || value === "control-plane-refresh") return value;
throw new Error("--gate must be reuse-plan, ci-taskrun-plan, cd-rollout-plan, post-deploy-health, or control-plane-refresh");
}
function isInClusterRuntime(): boolean {