Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); name the checks main requires in the waiting line, give up after 30 minutes naming a required check that never passed, and match a required check as Gitea's glob; stability's branch-endpoint fix and prose's 'to the tag' ride along

This commit is contained in:
2026-11-09 03:05:11 +01:00
parent a2390754f3
commit d62857f20e
5 changed files with 79 additions and 42 deletions
+5 -2
View File
@@ -169,8 +169,11 @@ def land(clone: str, ref: str, named: str, title: str) -> Failure | None:
said(f"opened pull request {number}")
if isinstance(number, Failure):
return number
said(f"waiting for the checks of pull request {number}")
if isinstance(passed := forge.checks_passed(on, number, head, base, run), Failure):
required = forge.required_checks(on, base, run)
if isinstance(required, Failure):
return required
said(f"waiting for the checks of pull request {number}" + (f"; {base} requires {', '.join(sorted(required))}" if required else ""))
if isinstance(passed := forge.checks_passed(on, number, head, required, run), Failure):
return passed
said(f"the checks of pull request {number} passed")
if isinstance(merged := forge.merge(on, number, head, run), Failure):