feat: add property update operations#112
Merged
vran-dev merged 1 commit intoMay 27, 2026
Merged
Conversation
为 UPDATE_FRONTMATTER 动作的每个属性增加操作类型选择,支持: 覆盖(SET):用新值覆盖原属性值,为原有默认行为 追加(ADD):保留原值,数组属性合并去重,非数组属性仅在不存在时赋值 删除(REMOVE):删除整个属性,属性不存在时跳过 向后兼容:已有配置未包含 operation 字段时默认为 SET。
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.
closed #110
变更说明
此前「更新属性」动作只能覆盖属性值,无法灵活应对追加或删除属性的场景。本次改动为每个属性配置项增加了操作方式下拉选择,支持三种模式:
改动文件
PropertyUpdateOperation枚举和PropertyUpdateOperationSelect下拉组件PropertyUpdate接口增加operation字段(默认SET,向后兼容)UpdateFrontmatterActionService按操作类型分支执行REMOVE操作不要求填写属性值