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
CI / tests (pull_request) Successful in 4m27s
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user