Read a team's own repo labels as do-epic's picks, and treat an item a person filed sub-tasks under as split
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lilleman
2026-11-19 15:33:51 +01:00
parent 017cf33611
commit 95535b4fb3
20 changed files with 278 additions and 119 deletions
+15
View File
@@ -56,6 +56,21 @@ class Planning(DoEpicTest):
found, _, out = self.plan(fake)
self.assertEqual((found, out, fake.made("claude")), (self.issues, "", []))
def test_an_epic_shaped_as_a_teams_is_planned_without_claude_and_without_a_write(self) -> None:
with (self.home / ".claude-projects/do-epic/config.toml").open("a", encoding="utf-8") as config:
config.write('\n[label-repos]\ntwu-4 = "tenant-web-ui-4"\ncore-4 = "core-4"\n')
self.issues = [
issue("ABC-19", "twu-4"),
issue("ABC-20"),
issue("ABC-23", "core-4", parent="ABC-20"),
issue("ABC-24", "twu-4", parent="ABC-20"),
issue("ABC-21", "urgent"),
issue("ABC-25", "core-4", parent="ABC-21"),
]
fake = FakeEffects()
found, store, out = self.plan(fake)
self.assertEqual((found, store.issues, out, fake.made("claude")), (self.issues, self.issues, "", []))
def test_labels_an_unplaced_issue_with_the_repo_claude_picks_on_the_repoless_models_rung(self) -> None:
self.issues = [issue("ABC-20")]
fake = FakeEffects(claude=[says({"parts": [{"repo": "api", "change": "Add the endpoint."}]}), says({"pick": "repo", "repo": "api"})])