Sort the imports, type the check reads and cite the working rule by its whole lead

This commit is contained in:
2026-11-18 23:19:41 +01:00
parent 117c698f65
commit 2dcf93a55f
10 changed files with 18 additions and 15 deletions
+4 -2
View File
@@ -63,8 +63,10 @@ def approved(number: str, run: Run, sleep: typing.Callable[[float], None] = time
def unanswered(number: str, run: Run) -> Failure | None:
"""A Failure naming the files where a reviewer's comment waits for an answer on pull request number, as `waiting_threads` finds them, or saying why they cannot be read. None where no thread waits."""
waiting = waiting_threads(number, run)
if isinstance(waiting, Failure) or not waiting:
return waiting or None
if isinstance(waiting, Failure):
return waiting
if not waiting:
return None
return Failure(f"a reviewer's comment on pull request {number} waits for an answer, in {', '.join(waiting)}; answer it in its thread, push any fix, and run chunk-pr merge again")