Answer prose round 1: 0 🔴, 3 🟡 (0 misread); reword the approval docstring and tell the worker it awaited a person's merge
CI / tests (pull_request) Successful in 4m31s
CI / tests (pull_request) Successful in 4m31s
This commit is contained in:
@@ -12,8 +12,8 @@ WAIT_SECONDS = 90 * 60
|
||||
PARKS = "CHUNK_PR_PARKS"
|
||||
|
||||
|
||||
def awaited(forge: Forge, wait_for_approval: bool, by_human: bool = False) -> bool | Failure:
|
||||
"""Whether merge waits for an approval: the project config's `wait-for-approval`, and never where a person merges the pull request (by_human), who sees its approval themselves. chunk-pr reads approvals on GitHub only, so a Gitea project that sets it fails, and merge never skips an approval the config requires."""
|
||||
def awaited(forge: Forge, wait_for_approval: bool, by_human: bool) -> bool | Failure:
|
||||
"""Whether merge waits for an approval. Never where a person merges the pull request (by_human): that person reads its approvals. Otherwise as the project config's `wait-for-approval` says; chunk-pr reads approvals on GitHub only, so a Gitea project that sets it fails, and the chunk never merges past an approval the config requires."""
|
||||
if by_human:
|
||||
return False
|
||||
if wait_for_approval and forge != "gh":
|
||||
|
||||
Reference in New Issue
Block a user