INNER CODE UNIT · Python
evaluateGate
kubeovn/kube-ovn · hack/e2e_control.py:554
def evaluateGate(
plan,
currentHeadSHA,
runConclusion,
approved,
expectedCatalogRevision=None,
executedPlan=None,
trustedExecution=True,
):
if plan.get("headSHA") != currentHeadSHA:
return {
"update": False,
"conclusion": "",
"summary": "",
"reason": "workflow result belongs to a stale pull request HEAD",
}
if (
expectedCatalogRevision is not None