Answer stability round 1: 0 🔴, 4 🟡 (0 misread); make the landed move only where its transition leads to an unblocking status, read the issue's status first, move parents after planning, and list do_epic's files one per bullet

This commit is contained in:
2026-11-21 00:31:37 +01:00
parent e8cd651bb8
commit 3273852b58
12 changed files with 123 additions and 46 deletions
+2 -3
View File
@@ -55,7 +55,6 @@ AUTOMATION_MOVES = "jira-automation-moves-issues"
# Three readers, seated as those who write and read this config, picked `jira-pull-request-open-status` from four candidates, 2-1, and the merged status's name was spelt to pair with it. Each names a status, not a transition as `jira-start-transition` does: do-epic takes whichever transition leads there.
PULL_OPEN_STATUS = "jira-pull-request-open-status"
PULL_MERGED_STATUS = "jira-pull-request-merged-status"
# Three readers, seated as those who write do-epic's config, picked this spelling, 2 to 1.
SUB_TASKS_LANDED_TRANSITION = "jira-sub-tasks-landed-transition"
SUB_TASK_SUMMARY = "sub-task-summary"
ISSUE_TYPES = (JIRA_FINDING_TYPE, JIRA_REVIEW_TYPE)
@@ -131,7 +130,7 @@ def start_faults(values: dict[str, object]) -> list[str]:
]
def pull_status_faults(values: dict[str, object]) -> list[str]:
def jira_name_faults(values: dict[str, object]) -> list[str]:
"""What is wrong with the PULL_OPEN_STATUS, PULL_MERGED_STATUS and SUB_TASKS_LANDED_TRANSITION settings in values."""
merged, unblocking = name_of(values.get(PULL_MERGED_STATUS)), values.get(UNBLOCKING_STATUSES, [])
listed_statuses = [status.casefold() for status in unblocking if isinstance(status, str)] if isinstance(unblocking, list) else []
@@ -184,7 +183,7 @@ def load(home: pathlib.Path, ladder_file: pathlib.Path = SHIPPED) -> DoEpicConfi
*finish_faults(values),
*workflow_faults(values),
*start_faults(values),
*pull_status_faults(values),
*jira_name_faults(values),
*(summary_template_faults(values[SUB_TASK_SUMMARY]) if SUB_TASK_SUMMARY in values else []),
*label_repo_faults(values.get(LABEL_REPOS, {})),
*(f"`{name}` is {values[name]!r}, {fault}" for name, example in zip(ISSUE_TYPES, ("Feature", "Chore")) if name in values and (fault := type_fault(values[name], example))),