Finish an epic: a finishing chunk files each repo's release review, has the human confirm each goal, and closes the epic with its summary

This commit is contained in:
2026-11-18 23:59:53 +01:00
parent 382ac99c41
commit fdb942472d
20 changed files with 514 additions and 63 deletions
+8
View File
@@ -140,6 +140,14 @@ class EpicStoreContract:
self.assertIsInstance(store.comment("ZZZ-1", "Hello."), Failure)
self.assertEqual([self.comments_on(store, key) for key in (child, task)], [[], []])
def test_closes_the_epic_once_its_summary_is_posted_and_refuses_a_blank_one(self) -> None:
store = self.new_store()
self.assertEqual(store.closed(), False)
self.assertIsInstance(store.close(" \n"), Failure)
self.assertEqual((store.closed(), self.comments_on(store, "ABC-12")), (False, []))
self.assertEqual(store.close("## Shipped\n\nThe import.\n"), None)
self.assertEqual((store.closed(), self.comments_on(store, "ABC-12")), (True, ["## Shipped\n\nThe import."]))
def test_reads_an_issue_without_scores_or_blockers_as_one_with_none(self) -> None:
store = self.new_store()
key = self.filed(store, store.epic_key, "Count the runs.")