MCPcopy Create free account
hub / github.com/formkit/formkit / getLatestPackageCommits

Function getLatestPackageCommits

scripts/utils.mjs:333–341  ·  view source on GitHub ↗
(pkg, n = 15)

Source from the content-addressed store, hash-verified

331 * Given a package name, this will get the latest N commits in the associated directory
332 */
333export function getLatestPackageCommits(pkg, n = 15) {
334 const commitLog = execSync(
335 `git rev-list HEAD --all --reverse --max-count=${n} --pretty=oneline -- "${packagesDir}/${pkg}"`,
336 {
337 encoding: 'utf-8',
338 }
339 )
340 return commitLog
341}
342
343/**
344 * Returns true if the current git working directory is clean

Callers 1

prePublishPackageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected