(repo: Path, relpath: str, content: str, message: str)
| 33 | |
| 34 | |
| 35 | def _commit_file(repo: Path, relpath: str, content: str, message: str) -> str: |
| 36 | path = repo / relpath |
| 37 | path.parent.mkdir(parents=True, exist_ok=True) |
| 38 | path.write_text(content, encoding="utf-8") |
| 39 | _git(repo, "add", relpath) |
| 40 | _git(repo, "commit", "-m", message) |
| 41 | return _git(repo, "rev-parse", "HEAD") |
| 42 | |
| 43 | |
| 44 | def _write_event(tmp_path: Path, payload: dict) -> Path: |
no test coverage detected