(args: string[], nodeOptions: SpawnOptions = {}, input: string = "")
| 80 | } |
| 81 | |
| 82 | async function lint(args: string[], nodeOptions: SpawnOptions = {}, input: string = "") { |
| 83 | const result = x(COMMITLINT, args, { |
| 84 | nodeOptions: { |
| 85 | stdio: ["pipe", "inherit", "inherit"], |
| 86 | ...nodeOptions, |
| 87 | }, |
| 88 | }); |
| 89 | |
| 90 | result.process?.stdin?.write(input); |
| 91 | result.process?.stdin?.end(); |
| 92 | |
| 93 | return result; |
| 94 | } |
| 95 | |
| 96 | async function log(hash: string) { |
| 97 | const result = await git(["log", "-n", "1", "--pretty=format:%B", hash], { |