Name the team's label for each repo in do-epic's finding and release-review prompts

This commit is contained in:
Lilleman
2026-11-20 11:18:07 +01:00
parent 88fee92dcb
commit 9f09912a02
4 changed files with 34 additions and 11 deletions
+9 -1
View File
@@ -93,7 +93,9 @@ class FilingAFinding(FindingsTest):
code, _, err, _ = self.run_with(["ABC-12", "--file", "Retry", "--label", "twu-4", "--label", "repo:api"])
self.assertEqual((code, err), (1, "cannot file the finding in the epic ABC-12: twu-4 and repo:api each say who works it; write one of them\n"))
_, _, err, _ = self.run_with(["ABC-12", "--file", "Retry", "--label", "twu"])
self.assertTrue(err.endswith("or `do-epic-human` for a task of the human's (or the team's `twu-4`)\n"), err)
self.assertTrue(err.endswith("write `twu-4` for the repo tenant-web-ui-4, `repo:<name>` for any other repo that works it, `do-epic-claude` for work of Claude's that changes no repo, or `do-epic-human` for a task of the human's\n"), err)
_, out, _, _ = self.run_with(["ABC-12", "--file", "Retry"])
self.assertTrue(out.endswith("picks one: `twu-4` for the repo tenant-web-ui-4, `repo:<name>` for any other repo that works it, `do-epic-claude` for work of Claude's that changes no repo, or `do-epic-human` for a task of the human's.\n"), out)
def test_a_release_review_takes_its_label_beside_its_repo(self) -> None:
code, out, _, _ = self.run_with(["ABC-12", "--file", "Review api", "--label", "repo:api", "--label", "do-epic-release-review"])
@@ -154,6 +156,12 @@ class Instructions(unittest.TestCase):
told = findings.instructions("ABC-12", pathlib.Path("/b/do-epic"), "Swedish", {})
self.assertTrue(told.endswith("its text on stdin. Write the issue and the decision in Swedish, the epic's language."), told)
self.assertNotIn("--blocked-by", told)
self.assertIn("The label is `repo:<name>` for the repo that works it, `do-epic-claude`", told)
def test_name_the_teams_label_for_each_repo_its_table_names_and_repo_name_for_any_other(self) -> None:
told = findings.instructions("ABC-12", pathlib.Path("/b/do-epic"), "Swedish", {"core": "core-4", "twu-4": "tenant-web-ui-4", "c4": "core-4"})
self.assertIn("The label is `core` for the repo core-4, `twu-4` for the repo tenant-web-ui-4, `repo:<name>` for any other repo that works it, `do-epic-claude`", told)
self.assertNotIn("`c4`", told)
class RecordingADecision(FindingsTest):