Skip to content

Commit

Permalink
Releasenotes: change to proper date format, add comment
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c971e4)
  • Loading branch information
rebortg committed Feb 15, 2021
1 parent 68bc599 commit 4a1d98f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/_ext/releasenotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
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': []
Expand Down Expand Up @@ -71,7 +71,7 @@
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']}")
Expand All @@ -87,6 +87,12 @@
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']:
Expand Down

0 comments on commit 4a1d98f

Please sign in to comment.