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

Function markChangedSinceReview

src/clawsweeper.ts:16831–16861  ·  view source on GitHub ↗
(options: {
      reason: string;
      currentUpdatedAt?: string | undefined;
      currentSnapshotHash?: string | undefined;
    })

Source from the content-addressed store, hash-verified

16829 ? !updatedSinceReview || reviewCommentOnlyUpdate
16830 : false;
16831 const markChangedSinceReview = (options: {
16832 reason: string;
16833 currentUpdatedAt?: string | undefined;
16834 currentSnapshotHash?: string | undefined;
16835 }): boolean => {
16836 markdown = replaceFrontMatterValue(markdown, "action_taken", "skipped_changed_since_review");
16837 if (options.currentUpdatedAt) {
16838 markdown = replaceFrontMatterValue(
16839 markdown,
16840 "current_item_updated_at",
16841 options.currentUpdatedAt,
16842 );
16843 }
16844 if (options.currentSnapshotHash) {
16845 markdown = replaceFrontMatterValue(
16846 markdown,
16847 "current_item_snapshot_hash",
16848 options.currentSnapshotHash,
16849 );
16850 }
16851 markdown = replaceFrontMatterValue(markdown, "apply_checked_at", new Date().toISOString());
16852 if (!dryRun) writeFileSync(path, markdown, "utf8");
16853 results.push({
16854 number,
16855 action: "skipped_changed_since_review",
16856 reason: options.reason,
16857 });
16858 processedCount += 1;
16859 maybeLogProgress(`skipped #${number}: ${options.reason}`);
16860 return processedCount >= processedLimit;
16861 };
16862 const postProofFreshnessBlock = (): {
16863 reason: string;
16864 currentUpdatedAt?: string;

Callers 1

applyDecisionsCommandFunction · 0.85

Calls 2

replaceFrontMatterValueFunction · 0.85
maybeLogProgressFunction · 0.85

Tested by

no test coverage detected