feat: add script to merge twilight release notes into stable release notes

This commit is contained in:
mr. M 2025-01-01 17:27:48 +01:00
parent 7627168a38
commit 4c339e603b
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
4 changed files with 1929 additions and 1978 deletions

View file

@ -0,0 +1,22 @@
import json
TWILIGHT_RELEASE_NOTES = "./src/release-notes/twilight.json"
STABLE_RELEASE_NOTES = "./src/release-notes/stable.json"
def main():
with open(TWILIGHT_RELEASE_NOTES, "r") as f:
twilight = json.load(f)
with open(STABLE_RELEASE_NOTES, "r") as f:
stable = json.load(f)
stable.append(twilight)
with open(STABLE_RELEASE_NOTES, "w") as f:
json.dump(stable, f, indent=2)
with open(TWILIGHT_RELEASE_NOTES, "w") as f:
json.dump({}, f, indent=2)
print("Twilight release notes merged into stable release notes.")