docs(drive): add guide for granting document permission to current bot#414
docs(drive): add guide for granting document permission to current bot#414fangshuyu-768 merged 1 commit intomainfrom
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)
📝 WalkthroughWalkthroughTwo documentation files are updated to add a new section explaining how to grant document access permissions to the current bot/app itself, including the specific API calls and parameters required ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@742208c6bca6a51986a3ad424798dc2fed62148a🧩 Skill updatenpx skills add larksuite/cli#chore/permission -y -g |
Greptile SummaryThis PR appends a new "授权当前应用访问文档" section to both
Confidence Score: 4/5Safe to merge after fixing the perm level; the hardcoded "view" will silently break write operations for developers following this guide. There is one P1 finding: the example grants only Both Important Files Changed
Sequence DiagramsequenceDiagram
participant Agent as AI Agent (bot)
participant BotAPI as /open-apis/bot/v3/info
participant PermAPI as drive permission.members.create
Agent->>BotAPI: GET /open-apis/bot/v3/info --as bot
BotAPI-->>Agent: { bot: { open_id: "ou_xxx" } }
Agent->>PermAPI: POST permission.members.create
Note over Agent,PermAPI: --data {member_type:openid, member_id:ou_xxx, perm:view}
PermAPI-->>Agent: 200 OK (read-only access granted)
Note over Agent,PermAPI: ⚠️ perm:view blocks subsequent write ops
Reviews (1): Last reviewed commit: "docs(drive): add guide for granting docu..." | Re-trigger Greptile |
Summary
Add skill guidance for granting document permission to the current bot application via bot info API + permission.members.create.
Changes
skill-template/domains/drive.md— append "授权当前应用访问文档" section with step-by-step instructionsskills/lark-drive/SKILL.md— same section syncedTest Plan
Related Issues
Summary by CodeRabbit