fix: harden organization label synchronization - #2
Merged
Conversation
lzm0x219
marked this pull request as ready for review
July 10, 2026 23:50
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.
变更摘要
修复组织级标签配置、Issue Forms 与标签同步自动化之间的不一致,并降低跨仓库标签同步的破坏风险。
主要修改
type: bug、type: feature;area:*、package:*、platform:*及其他仓库自行维护的扩展标签;labels.yml中对配置格式的说明,并在 README 中明确同步边界。根因
此前同步器把所有未出现在
.github/labels.yml中的标签都视为多余标签并删除,这与允许仓库维护项目级扩展标签的治理规则冲突。Issue Forms 同时仍引用历史 alias,可能导致新 Issue 无法自动获得正式类型标签。影响范围
影响组织内采用统一标签同步的仓库。合并后,项目级扩展标签不再被同步器删除;组织保留标签仍由
.github/labels.yml统一管理。验证
本地已执行:
结果:2 个测试、17 个断言全部通过,Ruby 语法和 YAML 解析正常。
审查重点