Answer prose round 1: 0 🔴, 11 🟡 (0 misread); loop-claude and do-epic are entry points everywhere, and each new sentence holds one idea
CI / tests (pull_request) Successful in 3m40s
CI / tests (pull_request) Successful in 3m40s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""What every reader of Jira Cloud's REST API version 3 shares: a search read page by page, the head of each entry it answers, an issue's "is blocked by" links, and the transition that finishes an issue."""
|
||||
"""What every reader of Jira Cloud's REST API version 3 shares: a search read page by page, the key, fields, "is blocked by" links and property of each issue it finds, checked for their shape, and the transition that finishes an issue."""
|
||||
import dataclasses
|
||||
import re
|
||||
import typing
|
||||
@@ -32,7 +32,7 @@ class Link:
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Entry:
|
||||
"""The head of one entry of a search's answer, which every reader checks alike."""
|
||||
"""The key, fields, links and property of one issue a search finds, which every reader checks alike."""
|
||||
key: str
|
||||
# The entry's `fields`, from which each reader takes the ones it asked for.
|
||||
fields: dict[str, typing.Any]
|
||||
@@ -42,7 +42,7 @@ class Entry:
|
||||
|
||||
|
||||
def entry_of(raw: object, property_: str) -> Entry | Failure:
|
||||
"""The head of one entry of a search's answer, or which issue is not in the shape Jira documents, and how. property_ names the issue property the search asked for."""
|
||||
"""The Entry of one issue a search finds, or which issue is not in the shape Jira documents, and how. property_ names the issue property the search asked for."""
|
||||
key = raw.get("key") if isinstance(raw, dict) else None
|
||||
if not isinstance(raw, dict) or not isinstance(key, str) or not ISSUE_KEY.fullmatch(key):
|
||||
return Failure("the search answered an issue without an issue key")
|
||||
|
||||
Reference in New Issue
Block a user