Split an epic item that changes several repos into a sub-task per repo #613

Merged
lilleman merged 11 commits from item-409 into main 2026-11-18 19:52:16 +01:00
Showing only changes of commit 860ff80973 - Show all commits
+1 -1
View File
@@ -72,7 +72,7 @@ def split(store: EpicStore, issue: EpicIssue, by_person: bool, rule: str, langua
if isinstance(read, Failure):
return read
have = {pick.name for task in read if task.parent == issue.key for label in task.labels if isinstance(pick := of_label(label), Repo)}
repos = tuple(dict.fromkeys([*have, *(part.repo for part in predicted.parts)]))
repos = tuple(dict.fromkeys([*sorted(have), *(part.repo for part in predicted.parts)]))
if len(repos) < 2:
return Split((), ())
if by_person and not predicted.comment: