From 6fda959b52c69688dfec02a69d953c8aa4e351f7 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 00:03:18 +0100 Subject: [PATCH] Parenthesize the condition under which do-epic only reads an issue --- bin/do_epic/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/do_epic/main.py b/bin/do_epic/main.py index 0e8363fa..29f75396 100644 --- a/bin/do_epic/main.py +++ b/bin/do_epic/main.py @@ -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)