(targetDir: string, baseSha: string, sha: string)
| 162 | } |
| 163 | |
| 164 | function commitDiffSummary(targetDir: string, baseSha: string, sha: string): string { |
| 165 | const stat = run("git", ["diff", "--stat", "--summary", `${baseSha}..${sha}`], { |
| 166 | cwd: targetDir, |
| 167 | }); |
| 168 | const names = run("git", ["diff", "--name-status", `${baseSha}..${sha}`], { cwd: targetDir }); |
| 169 | return `## Diff Summary |
| 170 | |
| 171 | \`\`\` |
| 172 | ${stat || "(no stat output)"} |
| 173 | \`\`\` |
| 174 | |
| 175 | ## Changed Files |
| 176 | |
| 177 | \`\`\` |
| 178 | ${names || "(no changed files)"} |
| 179 | \`\`\``; |
| 180 | } |
| 181 | |
| 182 | function promptForCommit(options: { |
| 183 | targetDir: string; |
no test coverage detected