MCPcopy Create free account
hub / github.com/github/gh-aw / settle

Function settle

actions/setup/js/process_runner.cjs:76–80  ·  view source on GitHub ↗

@param {{exitCode: number, output: string, hasOutput: boolean, durationMs: number}} result

(result)

Source from the content-addressed store, hash-verified

74 let settled = false;
75 /** @param {{exitCode: number, output: string, hasOutput: boolean, durationMs: number}} result */
76 function settle(result) {
77 if (settled) return;
78 settled = true;
79 resolve(result);
80 }
81
82 const argsForLog = logArgs ?? args;
83 log(`attempt ${attempt + 1}: spawning: ${command} ${argsForLog.join(" ").substring(0, 200)}`);

Callers 1

runProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected