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

Function readGitHubEventPayload

packages/bumpy/src/commands/ci.ts:1809–1817  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1807}
1808
1809function readGitHubEventPayload(): GitHubEventPayload | null {
1810 const path = process.env.GITHUB_EVENT_PATH;
1811 if (!path) return null;
1812 try {
1813 return JSON.parse(readFileSync(path, 'utf-8')) as GitHubEventPayload;
1814 } catch {
1815 return null;
1816 }
1817}
1818
1819/** True when running on a PR whose head repo differs from the base repo (i.e. a fork). */
1820function isForkPr(): boolean {

Callers 3

resolveTargetPrNumberFunction · 0.85
detectPrNumberFunction · 0.85
isForkPrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…