Skip to content

feat: add OpenClaw PR surface stats - #175

Merged
Takhoffman merged 1 commit into
mainfrom
task-openclaw-pr-surface-stats
May 23, 2026
Merged

Takhoffman merged 1 commit into
mainfrom
task-openclaw-pr-surface-stats

Conversation

@Takhoffman

Copy link
Copy Markdown
Contributor

Summary

  • Adds an OpenClaw-only PR surface summary to ClawSweeper's durable public PR review comment.
  • Persists compact per-file additions/deletions from hydrated PR file data so comment rendering does not fetch GitHub again.
  • Renders a one-line summary plus expandable Source/Tests/Docs/Config/Generated/Other table before the public Summary section.

Before / After

Before

Codex review: found issues before merge.

**Latest ClawSweeper review:** ...

**Workflow note:** Future ClawSweeper reviews update this same comment in place.

**Summary**
...
After

Codex review: found issues before merge.

**Latest ClawSweeper review:** ...

**Workflow note:** Future ClawSweeper reviews update this same comment in place.

**PR Surface**
Source +8, Tests +6, Docs +4. Total +18 across 3 files.

[expand] View PR surface stats
  Area       Files   Added   Removed   Net
  Source     1       10      2         +8
  Tests      1       7       1         +6
  Docs       1       4       0         +4
  Config     0       0       0          0
  Generated  0       0       0          0
  Other      0       0       0          0
  Total      3       21      3        +18

**Summary**
...

Verification

Behavior addressed: OpenClaw PR review comments now show compact PR surface churn stats before the Summary section.
Real environment tested: Local ClawSweeper checkout from a clean branch based on origin/main.
Exact steps or command run after this patch: ./node_modules/.bin/tsgo -p tsconfig.json; node --test test/pr-surface-stats.test.ts test/clawsweeper.test.ts; ./node_modules/.bin/oxfmt --check src/pr-surface-stats.ts src/clawsweeper.ts test/pr-surface-stats.test.ts test/clawsweeper.test.ts; git diff --check.
Evidence after fix: TypeScript build passed; 274 focused tests passed; touched files passed formatting; diff check passed.
Observed result after fix: OpenClaw PR comments render the PR Surface section before Summary, while issues and non-OpenClaw repositories omit it.
What was not tested: Full ClawSweeper pnpm run check; pnpm was unavailable on PATH in this shell, so validation used repo-local binaries directly.

@clawsweeper

clawsweeper Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat: add OpenClaw PR surface stats This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@Takhoffman
Takhoffman merged commit 9fa9ff7 into main May 23, 2026
7 checks passed
@Takhoffman
Takhoffman deleted the task-openclaw-pr-surface-stats branch May 23, 2026 13:01
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant