aboutsummaryrefslogtreecommitdiff
path: root/scripts/changelog.py
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-16 18:25:59 +0300
committerGitHub <noreply@github.com>2026-09-16 18:25:59 +0300
commit36db8ff3f4bee21b06f3208422be7cf91c7d3e40 (patch)
tree539cb0114feb45aeb8d483a29cba6e7912f77483 /scripts/changelog.py
parentaff99878d3467e809e18f07fb338c78dea50e558 (diff)
ci: promote stable releases from protected previews (#4241)
Diffstat (limited to 'scripts/changelog.py')
-rw-r--r--scripts/changelog.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/changelog.py b/scripts/changelog.py
index 46c3688d..cc41c4f3 100644
--- a/scripts/changelog.py
+++ b/scripts/changelog.py
@@ -317,6 +317,7 @@ def build_latest_json(
protocol: int | None = None,
announcement: dict[str, str] | None = None,
releases: dict[str, Any] | None = None,
+ endpoint_generation: int | None = None,
) -> str:
normalized_version = normalize_version(version)
normalized_notes = notes.strip()
@@ -330,7 +331,8 @@ def build_latest_json(
ordered_sha256 = normalize_sha256(sha256, "sha256")
normalized_announcement = normalize_announcement(announcement, "root")
archived_releases = normalize_releases(releases)
- endpoint_generation = read_endpoint_protocol_generation()
+ if endpoint_generation is None:
+ endpoint_generation = read_endpoint_protocol_generation()
current_metadata: dict[str, Any] = {
"notes": normalized_notes,
"protocol": protocol,
@@ -714,6 +716,7 @@ def cmd_sync_latest_json(args: argparse.Namespace) -> int:
protocol=int(new_manifest["protocol"]),
announcement=announcement,
releases=archived_releases_from_current_manifest(current_manifest),
+ endpoint_generation=args.endpoint_generation,
)
write_text(manifest_path, output)
if announcement is not None:
@@ -808,6 +811,7 @@ def build_parser() -> argparse.ArgumentParser:
sync_latest_json.add_argument("--output", default=str(DEFAULT_LATEST_JSON_PATH))
sync_latest_json.add_argument("--announcement", default=str(DEFAULT_PRODUCT_ANNOUNCEMENT_PATH))
sync_latest_json.add_argument("--protocol", type=int)
+ sync_latest_json.add_argument("--endpoint-generation", type=int)
sync_latest_json.set_defaults(func=cmd_sync_latest_json)
validate_product_announcement = subparsers.add_parser(