Move an epic's issue to done in Jira when its chunk finishes
CI / tests (pull_request) Successful in 4m20s
CI / tests (pull_request) Successful in 4m20s
This commit is contained in:
+4
-1
@@ -223,7 +223,10 @@ def chunk_root(issue: EpicIssue, epic: EpicRun) -> tuple[str, bool] | Stop:
|
||||
|
||||
|
||||
def handed_on(key: str, epic: EpicRun) -> Stop:
|
||||
"""The stop of a do-epic whose chunk finished, once it has started each chunk that may start now. Its window closes as it exits."""
|
||||
"""The stop of a do-epic whose chunk finished, once its issue is done in the tracker, so that no finished chunk starts again and what it blocks may start, and it has started each chunk that may start now. Its window closes as it exits."""
|
||||
moved = epic.store.finish(key)
|
||||
if isinstance(moved, Failure):
|
||||
return Stop(1, f"the chunk finished, but its issue could not move to done: {moved.reason}")
|
||||
started = chunks_started(epic, key)
|
||||
if isinstance(started, Failure):
|
||||
return Stop(1, f"the chunk finished, but the next could not start: {started.reason}")
|
||||
|
||||
Reference in New Issue
Block a user