Answer prose round 1: 0 🔴, 8 🟡 (0 misread); reword the README paragraph, help, docstrings and messages

This commit is contained in:
2026-11-14 21:27:23 +01:00
parent b514dcfe85
commit 68808e7eee
6 changed files with 29 additions and 28 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
"""A project's goals and audience kept as the description of one Jira Cloud epic, read over Jira's REST API with the plan store's credentials and the adf-codec shim.
"""A project's goals and audience kept as the description of one Jira Cloud epic, read over Jira's REST API with the credentials of the config's env-file, and converted by the adf-codec shim.
The store only reads: a write is a Failure, so a tool that edits the goals file says to edit the epic in Jira."""
The store only reads: a write, such as `project-record save goals-and-audience`, fails, saying to edit the epic in Jira."""
import dataclasses
import pathlib
@@ -39,7 +39,7 @@ class EpicDescription:
return Failure(f"cannot read the epic {key}: {answer.reason}")
fields = answer.get("fields") if isinstance(answer, dict) else None
if not isinstance(fields, dict) or "description" not in fields or not isinstance(fields["description"], dict | None):
return Failure(f"the epic {key} is not in the shape Jira Cloud's REST API version 3 documents: it holds no description field of a document or null")
return Failure(f"the epic {key} is not in the shape Jira Cloud's REST API version 3 documents: its description field is missing, or neither a document nor null")
if fields["description"] is None:
return ""
texts = self.to_markdown([fields["description"]])