Rewrite issue listing script

Rewrote the script in python and leveraged the dictionary CSV processor to
prevent field number mismatches. Combined the two scripts into one so that
all user-facing issues that are fixed can be easily shown in the release
notes.
This commit is contained in:
Markus Mäkelä
2018-09-10 13:50:18 +03:00
parent 73405c8ff9
commit eed2628cff
4 changed files with 31 additions and 37 deletions

30
Documentation/process.py Executable file
View File

@ -0,0 +1,30 @@
#!/usr/bin/env python3
import sys
import csv
bugs = []
new_features = []
for row in csv.DictReader(sys.stdin):
if row['Issue Type'] == 'Bug':
bugs.append(row)
elif row['Issue Type'] == 'New Feature':
new_features.append(row)
if len(new_features) > 0:
print("## New Features")
print()
for f in new_features:
print("* [" + f['Issue key'] + "](https://jira.mariadb.org/browse/" + f['Issue key'] + ") " + f['Summary'])
print()
print("## Bug fixes")
print()
for b in bugs:
print("* [" + b['Issue key'] + "](https://jira.mariadb.org/browse/" + b['Issue key'] + ") " + b['Summary'])
print()