feat(docs): days-based lookback for sync-docs (v1.2.0) - #10
Conversation
Default argument is now days (1 day if omitted). Explicit commit count mode requires the `commits` suffix (e.g. `10commits`). Bumps plugin version to 1.2.0. Co-Authored-By: Daedalus <daedalus@agents.flopbut.local> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe docs sync command now supports day-based and commit-count-based modes, documents updated current-content validation and reporting steps, and increments the plugin manifest version to 1.2.0. ChangesDocumentation sync update
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugins/docs/.claude-plugin/plugin.json`:
- Line 3: Update the version reported in the docs plugin catalog manifest to
1.2.0, matching the version in plugin.json. Modify the catalog entry in
docs/plugin-catalog/docs-plugin.md and leave other metadata unchanged.
In `@plugins/docs/commands/sync-docs.md`:
- Around line 9-16: Update the `/docs:sync-docs` command documentation in the
plugin catalog entry to match the contract shown in `sync-docs.md`: document the
default one-day lookback, interpret unsuffixed numbers as days, and describe
`commit`/`commits` suffixed values as commit counts. Remove the outdated
commit-only `[number_of_commits]` wording while preserving the command’s
existing catalog context.
- Around line 13-25: Define validation immediately after parsing $ARGUMENTS and
before constructing the git log command: reject zero or negative values,
non-numeric input, and unsupported suffixes. On rejection, explain the accepted
formats (positive day counts or positive commit counts using commit/commits),
ask the user to retry, and do not run git log.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 84676502-197d-42bf-9199-6069ad9ce6e6
📒 Files selected for processing (2)
plugins/docs/.claude-plugin/plugin.jsonplugins/docs/commands/sync-docs.md
|
Superseded by #11 (FLO-505, re-cut of FLO-503). This PR is on the stale |
|
Closing without merge — superseded. The days-based Merging this PR now would duplicate and conflict with that change (both touch the same three files) and regress the on- Feature delivery for the parent (FLO-502) is complete on |
Summary
/docs:sync-docsnow defaults to 1 day lookback instead of 5 commits/docs:sync-docs 7) is interpreted as dayscommitssuffix (e.g./docs:sync-docs 10commits)docsplugin version to1.2.0Test plan
/docs:sync-docs— runsgit log --since="1 days ago"/docs:sync-docs 3— runsgit log --since="3 days ago"/docs:sync-docs 10commits— runsgit log -10/docs:sync-docs 1commit— runsgit log -1Closes FLO-502
Summary by CodeRabbit
New Features
Documentation
Chores