fix(release): report seeded changelog provenance truthfully (#119897)

* fix(release): report seeded changelog provenance truthfully

* fix(release): reject legacy provenance formatting

* fix(release): enforce complete provenance records
This commit is contained in:
Vincent Koc
2026-08-06 19:22:16 +08:00
committed by GitHub
parent 8c64ca24b1
commit d73eb23b29
9 changed files with 410 additions and 56 deletions
+13
View File
@@ -7,6 +7,12 @@ export function extractChangelogSection(changelog: unknown, version: unknown): u
export function releaseNotesVersionForTag(tag: unknown): unknown;
export function formatShippedBaselineExclusions(baselines: ShippedBaselineExclusion[]): string;
export function parseShippedBaselineExclusions(section: string): ShippedBaselineExclusion[];
export function formatContributionRecordProvenance(
provenance: ContributionRecordProvenance,
): string;
export function parseContributionRecordProvenance(
section: string,
): ContributionRecordProvenance | undefined;
export function dedicatedSectionVersionForTag(tag: unknown): unknown;
export function releaseNotesSectionForTag(
changelog: unknown,
@@ -69,3 +75,10 @@ export type ShippedBaselineExclusion = {
count: number;
pullRequests: number[];
};
export type ContributionRecordProvenance = {
base: string;
target: string;
inRangePullRequests?: number;
retainedSeedOnlyPullRequests?: number;
uniquePullRequests: number;
};