-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
4 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |