按权威 version→commit 映射,为缺失开发版本增加 exact-SHA CHANGELOG 块。 正文采用该提交新增 CHANGELOG 或真实 commit body/diff 归纳,已有82条不改。 新增270条绑定验收与错SHA拒绝测试,不改变版本计算与同步实现。
This commit is contained in:
@@ -70,8 +70,8 @@ func TestRealChangelogDevelopmentNotes(t *testing.T) {
|
||||
if notes == "" || !strings.Contains(notes, tc.want) {
|
||||
t.Fatalf("real CHANGELOG %s notes missing: %q", tc.version, notes)
|
||||
}
|
||||
if governance.ExtractDevelopmentNotes(changelog, "0.1.35") != "" {
|
||||
t.Fatal("prefix version matched a longer version")
|
||||
if other := governance.ExtractDevelopmentNotes(changelog, "0.1.35"); strings.Contains(other, "首次同步可复用") || strings.Contains(other, "索引预检") {
|
||||
t.Fatalf("0.1.35 matched a longer version's body: %q", other)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user