mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 10:55:31 -06:00
fix(release): allow generated ledger repair
(cherry picked from commit e4a9398396)
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
highlightCountError,
|
||||
persistGithubSnapshot,
|
||||
releaseNoteReferences,
|
||||
renderedContributionRecordReferences,
|
||||
standardRevertedHash,
|
||||
subtractShippedPullRequests,
|
||||
withoutExcludedContributionRecords,
|
||||
@@ -373,6 +374,18 @@ describe("release-note verification", () => {
|
||||
).toEqual([]);
|
||||
});
|
||||
|
||||
it("ignores the stale generated record while rewriting it", () => {
|
||||
const record = {
|
||||
pullRequests: new Map([
|
||||
[104732, { references: [102289], thanks: ["fuller-stack-dev"] }],
|
||||
]),
|
||||
legacyIssues: new Map(),
|
||||
};
|
||||
|
||||
expect(renderedContributionRecordReferences(record, true)).toEqual([]);
|
||||
expect(renderedContributionRecordReferences(record, false)).toEqual([104732, 102289]);
|
||||
});
|
||||
|
||||
it("excludes Unreleased records from a cumulative shipped tag boundary", () => {
|
||||
const changelog = [
|
||||
"# Changelog",
|
||||
|
||||
Reference in New Issue
Block a user