Repository navigation
fix(setup): setup 前缀冲突守卫按 project_slug 判定 - #50
Merged
todosdev[bot] merged 1 commit intoNov 18, 2026
Merged
Conversation
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
4b12081的落地口径)。project_slug,并将前缀冲突判定改为根据外来三件套的project_slug与当前项目是否一致进行归属核验,放行兄弟项目及存量无 slug 项目。Changes
config/project引入PROJECT_SLUG,在DEFAULT_SETTINGS播种project_slug: PROJECT_SLUG。findForeignPrefixConflict改为逐个读取外来三件套在system_settings中的project_slug,仅当等于当前项目 slug 且前缀不同时拦截;异 slug 兄弟项目及无 slug 存量项目均放行。prefixConflict报错信息补充当前项目 slug 与实际生效前缀。Testing
pnpm check:identity:通过,白名单外身份令牌零残留。pnpm lint&pnpm format:check:通过,所有文件合规无修改。pnpm typecheck:通过,web 与 worker 类型检查零错误。pnpm test:全量测试通过(worker 27 个文件 199 项测试全部通过,web 18 个文件 123 项测试全部通过)。