Skip to content

Commit

Permalink
Rewrite issue listing script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
markus456 committed Sep 10, 2018
1 parent 73405c8 commit eed2628
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 37 deletions.
Expand Up @@ -11,4 +11,4 @@ fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

version=$1
curl -s "https://jira.mariadb.org/sr/jira.issueviews:searchrequest-csv-current-fields/temp/SearchRequest.csv?jqlQuery=project+%3D+MXS+AND+issuetype+%3D+Bug+AND+status+%3D+Closed+AND+fixVersion+%3D+$version" | $DIR/process.pl
curl -s "https://jira.mariadb.org/sr/jira.issueviews:searchrequest-csv-all-fields/temp/SearchRequest.csv?jqlQuery=project+%3D+MXS+AND+status+%3D+Closed+AND+fixVersion+%3D+$version" | $DIR/process.py
14 changes: 0 additions & 14 deletions Documentation/list_fixed_issues.sh

This file was deleted.

22 changes: 0 additions & 22 deletions Documentation/process.pl

This file was deleted.

30 changes: 30 additions & 0 deletions Documentation/process.py
@@ -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()

0 comments on commit eed2628

Please sign in to comment.