MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / getHeadSha

Function getHeadSha

packages/bumpy/src/core/github-release.ts:8–10  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

6
7/** Get the current HEAD commit SHA */
8export function getHeadSha(rootDir: string): string | null {
9 return tryRunArgs(['git', 'rev-parse', 'HEAD'], { cwd: rootDir });
10}
11
12/**
13 * Run an async function with BUMPY_GH_TOKEN as GH_TOKEN if available.

Callers 2

runPublishFlowFunction · 0.90
createIndividualReleasesFunction · 0.85

Calls 1

tryRunArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…