Answer stability round 2: 1 🔴, 0 🟡 (0 misread); the fake's blocker check types, and the imports in order
CI / tests (pull_request) Successful in 4m27s

This commit is contained in:
Lilleman
2026-11-19 17:06:29 +01:00
parent b7d7a1f1ea
commit 62b4825cea
5 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -24,9 +24,10 @@ class MemoryEpic:
return Failure(self.fails)
if refused := unfit(summary, labels):
return refused
if parent != self.epic_key and parent not in {issue.key for issue in self.issues if issue.parent == self.epic_key}:
children = {issue.key for issue in self.issues if issue.parent == self.epic_key}
if parent != self.epic_key and parent not in children:
return no_parent(self.epic_key, parent)
if blocked_by is not None and blocked_by not in {issue.key for issue in self.read()}:
if blocked_by is not None and blocked_by not in {issue.key for issue in self.issues if issue.parent == self.epic_key or issue.parent in children}:
return no_blocker(self.epic_key, blocked_by)
key = f"{self.epic_key.rpartition('-')[0]}-{len(self.issues) + 100}"
self.issues.append(EpicIssue(key, summary, detail.strip(), tuple(sorted(labels)), None, "To Do", False, parent, blockers=(blocked_by,) if blocked_by else (), by_loop=True))