| 216 | } |
| 217 | |
| 218 | function getCommits(from: string, to: string): RawCommit[] { |
| 219 | const output = git(["log", "--format=%H%x09%h%x09%an%x09%s", "--no-merges", `${from}..${to}`]); |
| 220 | if (!output) { |
| 221 | return []; |
| 222 | } |
| 223 | |
| 224 | return output.split("\n").map((line) => { |
| 225 | const [sha = "", shortSha = "", author = "", ...subjectParts] = line.split("\t"); |
| 226 | return { |
| 227 | sha, |
| 228 | shortSha, |
| 229 | author, |
| 230 | subject: subjectParts.join("\t"), |
| 231 | }; |
| 232 | }); |
| 233 | } |
| 234 | |
| 235 | export function shouldSkipCommit(commit: RawCommit) { |
| 236 | const subject = commit.subject.toLowerCase(); |