[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.1.0esr-14.0-1] fixup! Bug 42683: Create script to generate issue triage csv file from bugzilla query and git logs

morgan (@morgan) git at gitlab.torproject.org
Wed Aug 7 23:08:09 UTC 2024



morgan pushed to branch tor-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser


Commits:
4f0cf02d by Beatriz Rizental at 2024-08-07T23:07:38+00:00
fixup! Bug 42683: Create script to generate issue triage csv file from bugzilla query and git logs

- - - - -


1 changed file:

- tools/torbrowser/generate-bugzilla-triage-csv.sh


Changes:

=====================================
tools/torbrowser/generate-bugzilla-triage-csv.sh
=====================================
@@ -158,7 +158,7 @@ printf "\n]\n" >> "${git_json}"
 query_tail="&f1=product&n1=1&o1=anyexact&v1=Thunderbird%2CCalendar%2CChat%20Core%2CMailNews%20Core&f2=target_milestone&o2=substring&v2=${firefox_version}&limit=0"
 
 bugzilla_query="https://bugzilla.mozilla.org/buglist.cgi?${query_tail}"
-bugzilla_json_query="https://bugzilla.mozilla.org/rest/bug?include_fields=id,summary${query_tail}"
+bugzilla_json_query="https://bugzilla.mozilla.org/rest/bug?include_fields=id,component,summary${query_tail}"
 
 wget "${bugzilla_json_query}" -O ${bugzilla_json}
 
@@ -174,13 +174,14 @@ jq -s '[ (.[0].bugs)[], (.[1])[] ] | group_by(.id) | map(.[0])' "${bugzilla_json
 # Generate Triage CSV
 #
 
-echo "\"Review\",,\"Bugzilla Bug\""
+echo "\"Review\",,\"Bugzilla Component\",\"Bugzilla Bug\""
 
-jq '. | sort_by(.id)[] | "\(.id)|\(.summary)"' ${union_json} \
-| while IFS='|' read -r id summary; do
+jq '. | sort_by([.component, .id])[] | "\(.id)|\(.component)|\(.summary)"' ${union_json} \
+| while IFS='|' read -r id component summary; do
 
     # bugzilla info
     id="${id:1}"
+    component="${component:0}"
     summary="${summary:0:-1}"
     summary=$(jq_unescape "${summary}")
     # short summary for gitlab issue title
@@ -207,6 +208,7 @@ jq '. | sort_by(.id)[] | "\(.id)|\(.summary)"' ${union_json} \
         echoerr "Skipped Bugzilla ${id}: ${summary_short}"
     else
         csv_summary=$(csv_escape "${summary}")
+        csv_component=$(csv_escape "${component}")
 
         # parent issue
         bugzilla_url="https://bugzilla.mozilla.org/show_bug.cgi?id=${id}"
@@ -221,7 +223,7 @@ jq '. | sort_by(.id)[] | "\(.id)|\(.summary)"' ${union_json} \
         create_issue=$(csv_escape "=HYPERLINK(\"${new_issue_url}\", \"New Issue\")")
         bugzilla_link=$(csv_escape "=HYPERLINK(\"${bugzilla_url}\", \"Bugzilla ${id}: ${csv_summary}\")")
 
-        echo "FALSE,\"${create_issue}\",\"${bugzilla_link}\","
+        echo "FALSE,\"${create_issue}\",\"${csv_component}\",\"${bugzilla_link}\","
     fi
 done
 



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/4f0cf02d8cf7d352641e4dd7fc8d853e7584cb76

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/4f0cf02d8cf7d352641e4dd7fc8d853e7584cb76
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240807/e97be38f/attachment-0001.htm>


More information about the tor-commits mailing list