(
res: SelectorResult,
out_dir: Path,
report_style: str = "minimal",
no_emoji: bool = False,
)
| 815 | |
| 816 | |
| 817 | def write_report_files( |
| 818 | res: SelectorResult, |
| 819 | out_dir: Path, |
| 820 | report_style: str = "minimal", |
| 821 | no_emoji: bool = False, |
| 822 | ) -> tuple[Path, Path]: |
| 823 | out_dir.mkdir(parents=True, exist_ok=True) |
| 824 | json_path = out_dir / "selection.json" |
| 825 | md_path = out_dir / "decision.md" |
| 826 | |
| 827 | json_path.write_text(res.model_dump_json(indent=2), encoding="utf-8") |
| 828 | md_path.write_text( |
| 829 | _render_decision_markdown(res, style=report_style, emoji=not no_emoji), |
| 830 | encoding="utf-8", |
| 831 | ) |
| 832 | return json_path, md_path |
| 833 | |
| 834 | |
| 835 | def create_job_summary(md_path: Path, overwrite: bool = True) -> None: |
no test coverage detected