(hash: string)
| 2 | |
| 3 | // avoid duplicate commits |
| 4 | const verifyCommitUnique = async (hash: string): Promise<boolean> => { |
| 5 | const message: string | null = await git.getCommitMessage(hash) |
| 6 | if (!message) { |
| 7 | return false |
| 8 | } |
| 9 | const exists: boolean = await git.commitsExistsByMessage(message) |
| 10 | return exists |
| 11 | } |
| 12 | |
| 13 | export const loadCommits = async (commits: string[] = []): Promise<void> => { |
| 14 | if (commits && commits.length) { |