MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getCommits

Function getCommits

scripts/draft-changelog.ts:218–233  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

216}
217
218function 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
235export function shouldSkipCommit(commit: RawCommit) {
236 const subject = commit.subject.toLowerCase();

Callers 1

createDraftFunction · 0.70

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected