MCPcopy
hub / github.com/openclaw/clawsweeper / optionalGhJson

Function optionalGhJson

src/commit-sweeper.ts:96–105  ·  view source on GitHub ↗
(path: string, jq: string)

Source from the content-addressed store, hash-verified

94}
95
96function optionalGhJson(path: string, jq: string): string {
97 try {
98 return runText("gh", ["api", path, "--jq", jq], {
99 maxBuffer: 1024 * 1024,
100 trim: "both",
101 });
102 } catch {
103 return "";
104 }
105}
106
107export function commitMetadata(
108 targetDir: string,

Callers 1

commitMetadataFunction · 0.85

Calls 1

runTextFunction · 0.85

Tested by

no test coverage detected