Parenthesize the condition under which do-epic only reads an issue
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lilleman
2026-11-20 00:03:18 +01:00
parent 3d34411e24
commit 6fda959b52
+1 -1
View File
@@ -432,7 +432,7 @@ def handed_on(key: str, epic: EpicRun, in_repo: bool = False, humans: bool = Fal
"""The stop of a do-epic whose chunk finished. It first moves the chunk's issue to done (the epic's finishing has none), and its split item too where that was the last of the item's sub-tasks, so that no finished chunk starts again and what they block may start, then starts each chunk that may start now. Where the team's automation moves issues, others move two kinds of issue. The automation moves the issue of a chunk in a repo, which in_repo marks, from its pull request: the stop waits for that move (`moved_by_automation`). The human moves their own task, which humans marks: the stop moves and awaits nothing. A chunk without a repo has no pull request, so its issue moves to done as ever, and so does a split item, once Jira counts each of its sub-tasks done. Its window closes as it exits."""
automated = epic.config.automation_moves
# The epic's finishing has no issue to move: the epic is closed by `--close-epic`. Nor has a human's task where the human moves it: its window waited until it holds up no issue.
if key == epic.key or humans and automated:
if key == epic.key or (humans and automated):
issues: list[EpicIssue] | Failure = epic.store.read()
elif in_repo and automated:
issues = moved_by_automation(key, epic)