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

Function getCommits

scripts/changelog-weekly.ts:181–195  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

179};
180
181function getCommits(from: string, to: string): RawWeeklyCommit[] {
182 const output = git([
183 "log",
184 "--format=%H%x09%h%x09%an%x09%cs%x09%s",
185 "--no-merges",
186 `--since=${from}T00:00:00`,
187 `--until=${to}T23:59:59`,
188 ]);
189
190 if (!output) {
191 return [];
192 }
193
194 return output.split("\n").map(parseGitLogLine);
195}
196
197function parseGitLogLine(line: string): RawWeeklyCommit {
198 const [sha = "", shortSha = "", author = "", date = "", ...subjectParts] = line.split("\t");

Callers 1

getWeeklyCommitsFunction · 0.70

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected