feat(docs): support create title option#1536
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)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthroughThe docs create v2 path now accepts an optional ChangesDocs create title flow
Automations ignore pattern
Sequence Diagram(s)sequenceDiagram
participant "docs +create" as DocsCreate
participant validateCreateV2
participant buildCreateBody
participant "/open-apis/docs_ai/v1/documents" as DocsDocumentsAPI
DocsCreate->>validateCreateV2: --title, --content, --doc-format
validateCreateV2-->>DocsCreate: validated inputs
DocsCreate->>buildCreateBody: request inputs
buildCreateBody->>DocsDocumentsAPI: body.content with escaped <title> prefix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
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 docstrings
🧪 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 |
e58d61b to
363b54b
Compare
Change-Id: I6fd840fe813e5e664ea9ec680765fd41375cdebf
363b54b to
e21ef41
Compare
Change-Id: I2f986a4606729bc791a1bff6c03aaa198b0798dc
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@66a4b3161054985eaebd7ebd50b434648dc50641🧩 Skill updatenpx skills add larksuite/cli#codex/support-doc-title-warning -y -g |
Change-Id: Ic7005e015c9e71a4582c1f4a8ac8222d552426d4
068a404 to
4fc2da1
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1536 +/- ##
==========================================
+ Coverage 74.53% 74.59% +0.06%
==========================================
Files 792 793 +1
Lines 78690 79085 +395
==========================================
+ Hits 58653 58997 +344
- Misses 15670 15702 +32
- Partials 4367 4386 +19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
051f8ef to
362f5af
Compare
Change-Id: I0226e20c6bf2187eb6c4f0d2d5e37ab9225d4171
362f5af to
66a4b31
Compare
Summary
docs +create --titlefor v2 document creation.--titleis provided, prepend<title>...</title>to content before sending the request.lark-docskill docs to guide Agent title usage and duplicate-title behavior.Validation
make buildgo test ./shortcuts/doc -count=1go test ./tests/cli_e2e/docs -run "^TestDocs_(DryRunDefaultsToV2OpenAPI|CreateTitleDryRunPrependsContent)$" -count=1ppe_sun_ai_testcreate/fetch checks for Markdown title creation and duplicate title filtering warnings.Related
Summary by CodeRabbit
New Features
docs +createnow supports a separate--titleflag, including in dry-run output and help text.Bug Fixes
Documentation