(file: string, content: string, msg: string)
| 25 | } |
| 26 | |
| 27 | function commit(file: string, content: string, msg: string): string { |
| 28 | fs.writeFileSync(path.join(repo, file), content); |
| 29 | git(["add", file]); |
| 30 | git(["commit", "-q", "-m", msg]); |
| 31 | return git(["rev-parse", "HEAD"]); |
| 32 | } |
| 33 | |
| 34 | function runHook( |
| 35 | stdinLines: string, |
no test coverage detected