Pass the repo's config to the task, so the no-repo case is tested where mutants run
CI / tests (pull_request) Failing after 5m5s

This commit is contained in:
2026-11-19 02:42:20 +01:00
parent 36c0ed9bfa
commit a2c9d2150d
3 changed files with 11 additions and 8 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ def shipping(config: ProjectConfig) -> str:
return f"{opening} Where the repo publishes something others consume, ship the change with one bullet for its users under `## Unreleased` in {config.places['changelog']}, added in the branch; otherwise write none."
def task(issue: EpicIssue, epic: str, checkout: str | None, launcher: pathlib.Path, language: str, shipped: str) -> str:
"""The task of the chunk that works issue, of the epic with the key epic: in checkout, or without a repo where it is None. launcher is the do-epic that runs the chunk, language the one the epic's Jira text is in, and shipped how the chunk ships its change, which `shipping` words for a chunk in a repo and is empty without one."""
def task(issue: EpicIssue, epic: str, checkout: str | None, launcher: pathlib.Path, language: str, config: ProjectConfig | None) -> str:
"""The task of the chunk that works issue, of the epic with the key epic: in checkout, or without a repo where it is None. launcher is the do-epic that runs the chunk, language the one the epic's Jira text is in, and config the project config of the repo's checkout, None without a repo."""
shipped = shipping(config) if config else ""
where = f"in the checkout {checkout}, on the branch {issue.key}" if checkout else "which changes no repo: work in the folder you start in"
return f"Work the Jira issue {issue.key} of the epic {epic} as one chunk, {where}. {findings.instructions(epic, launcher, language)}{f' {shipped}' if shipped else ''} Its summary: {issue.summary}" + (f"\n\nIts description:\n\n{issue.detail}" if issue.detail else "")