(count: number = 5)
| 28 | } |
| 29 | |
| 30 | export async function getRecentCommits(count: number = 5): Promise<string[]> { |
| 31 | const log = await git.log({ maxCount: count }); |
| 32 | return log.all.map((c) => `${c.hash.slice(0, 7)} ${c.message}`); |
| 33 | } |
| 34 | |
| 35 | export async function getAuthor(): Promise<string> { |
| 36 | const name = await git.raw(["config", "user.name"]).catch(() => "unknown"); |
no outgoing calls
no test coverage detected