Sort the imports, type the check reads and cite the working rule by its whole lead
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user