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

Function prCloseCoverageProofCoveringRef

src/repair/apply-result.ts:1182–1197  ·  view source on GitHub ↗
({
  actionName,
  classification,
  canonical,
  candidateFix,
}: LooseRecord)

Source from the content-addressed store, hash-verified

1180}
1181
1182function prCloseCoverageProofCoveringRef({
1183 actionName,
1184 classification,
1185 canonical,
1186 candidateFix,
1187}: LooseRecord) {
1188 if (actionName === "close_duplicate") return canonical;
1189 if (actionName === "close_superseded") return candidateFix || canonical;
1190 if (["close_fixed_by_candidate", "post_merge_close"].includes(actionName)) return candidateFix;
1191 if (actionName === "close") {
1192 if (classification === "duplicate") return canonical;
1193 if (classification === "superseded") return candidateFix || canonical;
1194 if (classification === "fixed_by_candidate") return candidateFix;
1195 }
1196 return null;
1197}
1198
1199function hydratePrCloseCoveragePullRequest(
1200 repo: string,

Calls

no outgoing calls

Tested by

no test coverage detected