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

Function validateDateRange

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

Source from the content-addressed store, hash-verified

157}
158
159function validateDateRange(from: string, to: string) {
160 validateCliDate(from, fail);
161 validateCliDate(to, fail);
162 if (from > to) {
163 fail(`Invalid date range: --from ${from} is after --to ${to}.`);
164 }
165}
166
167function getWeeklyCommits(options: WeeklyOptions): WeeklyCommit[] {
168 return getCommits(options.from, options.to)

Callers 1

requireDateRangeFunction · 0.85

Calls 2

validateCliDateFunction · 0.90
failFunction · 0.70

Tested by

no test coverage detected