Commit Report Sync Bot 5f6018c6cd Remove reference to parentHashes
Turns out they're not actually needed, because the implementation of
"finding all commits" just iterates over the lines of the `git log`
output, anyway - no need to actually traverse the tree.

I am _reasonably_ sure this means that it's no longer a pre-requisite
that the source repo has linear history, either. If I discover during
adding tests that that actually is the case, I'll re-add that note.
2025-03-02 21:49:11 -08:00

20 lines
376 B
TypeScript

// TODO - parametrize the scheme
export type Repo = {
domain: string;
owner: string;
name: string;
}
export function repoString(repo: Repo): string {
return `${repo.domain}/${repo.owner}/${repo.name}`;
}
export type Commit = {
hash: string;
author_name: string;
author_email: string;
repo_path: string;
date: Date;
message: string;
}