diff options
author | rebortg <github@ghlr.de> | 2021-02-15 20:43:53 +0100 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2021-02-15 20:43:53 +0100 |
commit | 5c971e4bae2f7ae8d39caf0bce34b18298b1e3be (patch) | |
tree | 611777701129b87a5978a645a5a23ed7d88e0b58 /docs | |
parent | 15600332bf34a54e1221a3007ba0c19bebe3776f (diff) | |
download | vyos-documentation-5c971e4bae2f7ae8d39caf0bce34b18298b1e3be.tar.gz vyos-documentation-5c971e4bae2f7ae8d39caf0bce34b18298b1e3be.zip |
Releasenotes: change to proper date format, add comment
Diffstat (limited to 'docs')
-rw-r--r-- | docs/_ext/releasenotes.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/_ext/releasenotes.py b/docs/_ext/releasenotes.py index 4bc05e1b..4db65c86 100644 --- a/docs/_ext/releasenotes.py +++ b/docs/_ext/releasenotes.py @@ -22,14 +22,14 @@ for project in projects.response['data']: projects = { 'equuleus': { 'phid': 'PHID-PROJ-zu26ui4vbmvykpjtepij', - 'name': 'VyOS 1.3 Equuleus', + 'name': '1.3 Equuleus', 'filename': 'docs/changelog/1.3.rst', 'tasks': [], 'releasenotes': [] }, 'current': { 'phid': 'PHID-PROJ-m4utvy456e2shcprpq3b', - 'name': 'VyOS 1.4 Sagitta', + 'name': '1.4 Sagitta', 'filename': 'docs/changelog/1.4.rst', 'tasks': [], 'releasenotes': [] @@ -71,7 +71,7 @@ for project in projects: releasenote = {} releasenote['type'] = task['fields']['subtype'] date = datetime.fromtimestamp(task['fields']['dateClosed']) - releasenote['closedate'] = date.strftime('%Y%m%d') + releasenote['closedate'] = date.strftime('%Y-%m-%d') releasenote['name'] = task['fields']['name'] releasenote['id'] = task['id'] #print(f"{project}: {task['fields']['status']} {task['id']}") @@ -87,6 +87,12 @@ for project in projects: rst_text += "#" * len(projects[project]['name']) rst_text += "\n" + rst_text += "\n" + rst_text += "..\n" + rst_text += " Please don't add anything by hand.\n" + rst_text += " This file is managed by the script:\n" + rst_text += " _ext/releasenotes.py\n" + date = None for rn in projects[project]['releasenotes']: if date != rn['closedate']: |