Answer prose round 1: 1 🔴, 6 🟡 (0 misread); reword the help, comments, docstrings and the decision, and read a Gitea draft in the commits before
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ class Pending:
|
||||
def checks_now(forge: Forge, number: str, head: str, required: set[str], run: Run, settled: bool = True) -> Pending | Failure | None:
|
||||
"""The checks on pull request number, whose head commit is head, read once: None where every one passed, Pending while one still runs, a CheckFailed where one failed, and any other Failure where the forge cannot be read.
|
||||
|
||||
On Gitea a passed check must also match each of required: a check CI has yet to queue is no status at all. A head without any check counts as passed once settled, and as pending before, since CI may not have queued its checks yet. gh reports no check as pending before it starts, so there such a head always counts as passed.
|
||||
On Gitea a passed check must also match each of required: a check CI has yet to queue is no status at all. A head without any check counts as passed once settled, and as pending before, since CI may not have queued its checks yet. On GitHub such a head always counts as passed: gh cannot tell a head whose checks have yet to start from a head that has none.
|
||||
"""
|
||||
if forge == "gh":
|
||||
listed = run(["gh", "pr", "checks", number, "--json", "bucket"])
|
||||
|
||||
Reference in New Issue
Block a user