mirror of
https://github.com/zen-browser/www
synced 2026-04-25 17:14:56 +02:00
feat: add script to merge twilight release notes into stable release notes
This commit is contained in:
22
scripts/twilight-to-stable.py
Normal file
22
scripts/twilight-to-stable.py
Normal 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.")
|
||||
Reference in New Issue
Block a user