Finish an epic: review each repo it changed, have the human confirm each goal, post a summary and close it #625

Merged
lilleman merged 12 commits from item-415 into main 2026-11-19 01:27:09 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 30f0ac6200 - Show all commits
+1 -1
View File
@@ -83,7 +83,7 @@ def closed(epic: str, store: EpicStore, stdin: typing.TextIO) -> str | Failure:
return Failure(f"cannot close the epic {epic}: {issues.reason}")
already = store.closed()
if already:
return Failure(f"cannot close the epic {epic}: {already.reason if isinstance(already, Failure) else 'it is closed already, so its summary is posted'}")
return Failure(f"cannot close the epic {epic}: {already.reason if isinstance(already, Failure) else 'it is closed already'}")
if waiting := still_open(issues):
return Failure(f"cannot close the epic {epic}: {listed(waiting, 'and')} {'is' if len(waiting) == 1 else 'are'} open")
if lacking := unreviewed(issues):
+1 -1
View File
@@ -90,7 +90,7 @@ class ClosingTheEpic(DoEpicTest):
self.store.done = True
code, _, err = self.close()
self.assertEqual(code, 1)
self.assertIn("cannot close the epic ABC-12: it is closed already, so its summary is posted\n", err)
self.assertIn("cannot close the epic ABC-12: it is closed already\n", err)
self.assertEqual(self.store.comments, {})
def test_says_why_it_cannot_tell_whether_the_epic_is_closed(self) -> None: