mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
feat: add script to merge twilight release notes into stable release notes
This commit is contained in:
parent
7627168a38
commit
4c339e603b
4 changed files with 1929 additions and 1978 deletions
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.")
|
Loading…
Add table
Add a link
Reference in a new issue