(repoDir, commit string)
| 22 | } |
| 23 | |
| 24 | func getCommitMessage(repoDir, commit string) (string, error) { |
| 25 | out, err := runGitCmd(repoDir, "log", "-1", "--format=%B", "--end-of-options", commit) |
| 26 | if err != nil { |
| 27 | return "", fmt.Errorf("git log failed: %w", err) |
| 28 | } |
| 29 | return strings.TrimSpace(string(out)), nil |
| 30 | } |