 eed2628cff
			
		
	
	eed2628cff
	
	
	
		
			
			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.
		
			
				
	
	
		
			31 lines
		
	
	
		
			645 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			645 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/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()
 |