fix(docs): clarify replace_all selection errors#954
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe v1 update validation now generates mode-specific error messages when a selection locator is missing. A new helper function returns selection requirement guidance and, for ChangesMode-Specific Selection Error Message
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #954 +/- ##
=======================================
Coverage 66.78% 66.79%
=======================================
Files 564 564
Lines 52441 52446 +5
=======================================
+ Hits 35024 35029 +5
Misses 14516 14516
Partials 2901 2901 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@bc75e8996937a332db7bb9b2131393dd0fc9ff0b🧩 Skill updatenpx skills add afengzi/cli#codex/docs-replace-all-selection-hint -y -g |
Summary
replace_allselection validation, but add a targeted hint for full-document replacement--mode overwritewhen users run--mode replace_allwithout a required selectionreplace_allValidation
go test -count=1 ./shortcuts/docgo test -race -gcflags="all=-N -l" -count=1 ./shortcuts/docgo vet ./shortcuts/docmake buildRefs #809
Summary by CodeRabbit
Bug Fixes
replace_allmode without required selection flags, users now receive suggestions to consider usingoverwritemode as an alternative option.Tests