Answer stability round 1: 0 🔴, 6 🟡 (0 misread); share the finish settings' checks with the project config, and test the finishing chunk's language, unread issues, cap, lock and backend

This commit is contained in:
2026-11-19 00:44:07 +01:00
parent 9b47b76f52
commit d99345fb8a
14 changed files with 106 additions and 29 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ class JiraEpic:
def close(self, summary: str) -> None | Failure:
if self.finish is None:
return Failure(f"do-epic's settings name no transition to close an epic by: set `{JIRA_FINISH_TRANSITION}` and `{JIRA_FINISH_STATUS}`, as config.py's docstring shows")
return Failure(f"do-epic's settings name no transition to close an epic by: set `{JIRA_FINISH_TRANSITION}` and `{JIRA_FINISH_STATUS}` in ~/.claude-projects/do-epic/config.toml, to the names Jira shows, such as \"Mark as done\" and \"Done\"")
authorization = basic_auth(self.env_file)
if isinstance(authorization, Failure):
return authorization
@@ -141,7 +141,7 @@ class JiraEpic:
body = self.to_adf(summary)
if isinstance(body, Failure):
return Failure(f"cannot convert the summary to a Jira comment: {body.reason}")
# Read before the comment is posted, so that an epic that cannot move gets no summary, and a second try posts no second one.
# The transition is read before the comment is posted, so an epic that cannot move gets no summary.
transition = finishing_transition(self.epic.site, self.epic_key, self.finish, authorization, self.http)
if isinstance(transition, Failure):
return transition