diff --git a/Documentation/list_fixed_bugs.sh b/Documentation/list_fixed_bugs.sh index ac39dc1aa..8be27538f 100755 --- a/Documentation/list_fixed_bugs.sh +++ b/Documentation/list_fixed_bugs.sh @@ -8,4 +8,4 @@ then fi 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"|cut -f 1,2 -d ,|tail -n+2|sed 's/\(.*\),\(.*\)/* (\2)[https:\/\/jira.mariadb.org\/browse\/\2] \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" | process.pl diff --git a/Documentation/list_fixed_issues.sh b/Documentation/list_fixed_issues.sh index e40aebf87..19707a3c4 100755 --- a/Documentation/list_fixed_issues.sh +++ b/Documentation/list_fixed_issues.sh @@ -8,4 +8,4 @@ then fi version=$1 -curl -s "https://jira.mariadb.org/sr/jira.issueviews:searchrequest-csv-current-fields/temp/SearchRequest.csv?jqlQuery=project+%3D+MXS+AND+issuetype+%21%3D+Bug+AND+status+%3D+Closed+AND+fixVersion+%3D+$version"|cut -f 1,2 -d ,|tail -n+2|sed 's/\(.*\),\(.*\)/* (\2)[https:\/\/jira.mariadb.org\/browse\/\2] \1/' +curl -s "https://jira.mariadb.org/sr/jira.issueviews:searchrequest-csv-current-fields/temp/SearchRequest.csv?jqlQuery=project+%3D+MXS+AND+issuetype+%21%3D+Bug+AND+status+%3D+Closed+AND+fixVersion+%3D+$version"|process.pl diff --git a/Documentation/process.pl b/Documentation/process.pl new file mode 100755 index 000000000..f325b96de --- /dev/null +++ b/Documentation/process.pl @@ -0,0 +1,20 @@ +#!/bin/perl + +# Discard the CSV headers +<>; + +while (<>) +{ + # Replace commas that are inside double quotes + s/("[^"]*),([^"]*")/$1$2/g; + + # Replace the double quotes themselves + s/"([^"]*)"/$1/g; + + # Split the line and grab the issue number and description + my @parts = split(/,/); + my $issue = @parts[1]; + my $desc = @parts[0]; + + print "* ($issue)[https://jira.mariadb.org/browse/$issue] $desc\n"; +}