From 071aac4bef8481dcf180190a7180f9dee9ec0825 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Fri, 20 Nov 2026 15:56:15 +0500 Subject: [PATCH] =?UTF-8?q?PEP-212:=20=C2=AB=D0=9F=D1=80=D0=B8=D0=BD=D1=8F?= =?UTF-8?q?=D1=82=D1=8C=C2=BB=20=D0=BF=D1=80=D0=B8=20=D0=B8=D0=B4=D1=83?= =?UTF-8?q?=D1=89=D0=B8=D1=85=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=D1=85=20=E2=80=94=20=D0=BE=D0=B4=D0=B8=D0=BD=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B2=D1=82=D0=BE=D1=80=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=81=D0=B0=20=D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20PR=20(=D0=BD=D0=B5=D1=81=D1=82=D0=B0=D0=B1=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=82=D0=B5=D1=81=D1=82=20accept-pe?= =?UTF-8?q?nding)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/runner/src/flow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runner/src/flow.ts b/packages/runner/src/flow.ts index fc64cb65..87ceefee 100644 --- a/packages/runner/src/flow.ts +++ b/packages/runner/src/flow.ts @@ -149,7 +149,8 @@ export type AcceptResult = TaskRef & { pending?: boolean }; * False — mergeable now (or no PR, or Gitea can't be asked): accept the usual way. */ async function deferAccept(db: Db, ref: TaskRef, via: string): Promise { - const gate = await prGate(ref).catch(() => null); + // One retry: a transient Gitea hiccup must not turn «Принять» into a refusal while checks are running. + const gate = await prGate(ref).catch(() => prGate(ref).catch(() => null)); const pull = gate?.pull; if (!gate || gate.ok || !pull || pull.merged || pull.state !== "open") return false; // Red checks are refused with the reason, as before (spec delivery-pipeline): the agent fixes them first.