MCPcopy Create free account
hub / github.com/backnotprop/plannotator / fetchPRStack

Function fetchPRStack

packages/shared/pr-provider.ts:108–115  ·  view source on GitHub ↗
(
  runtime: PRRuntime,
  ref: PRRef,
  metadata: PRMetadata,
)

Source from the content-addressed store, hash-verified

106 * Returns null if the PR is not stacked or the API call fails.
107 */
108export async function fetchPRStack(
109 runtime: PRRuntime,
110 ref: PRRef,
111 metadata: PRMetadata,
112): Promise<PRStackTree | null> {
113 if (ref.platform === "github") return fetchGhPRStack(runtime, ref, metadata);
114 return null; // GitLab: not yet implemented
115}
116
117export async function fetchPRList(
118 runtime: PRRuntime,

Callers

nothing calls this directly

Calls 1

fetchGhPRStackFunction · 0.90

Tested by

no test coverage detected