feat(import): add --transfer-owner flag#73
Closed
chifan42 wants to merge 1 commit intoriba2534:mainfrom
Closed
Conversation
…nsfer After importing a Markdown file, automatically grant full_access permission and optionally transfer document ownership. - --transfer-owner <email>: transfer to specified email - --transfer-owner (no value): use owner_email from config - config transfer_ownership: true also triggers transfer - Priority: CLI flag email > config owner_email
5 tasks
Owner
|
感谢提交!\n\n关闭原因: flag 设计拆分方案合理:\n1. (bool) 控制是否启用转移\n2. (string) 指定邮箱\n\n这个拆分更适合 CLI 的语义,建议重新设计后提交。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--transfer-ownerflag todoc importcommandfull_accesspermission to the specified user--transfer-ownerflag ortransfer_ownershipconfig)--transfer-owner user@example.com) or falling back toowner_emailin configUsage
Test plan
doc import doc.md --transfer-owner user@example.com— verify permission added + ownership transferreddoc import doc.md --transfer-ownerwithowner_emailin config — verify fallback worksdoc import doc.mdwithtransfer_ownership: truein config — verify auto-transferdoc import doc.mdwithout flag or config — verify no permission/transfer changes (backward compatible)