Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
4e65b15b
Verified
Commit
4e65b15b
authored
Jul 24, 2024
by
brizental
Committed by
Pier Angelo Vendrame
Aug 13, 2024
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 42683: Create script to generate issue triage csv file from bugzilla query and git logs
parent
b25077f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/torbrowser/generate-bugzilla-triage-csv.sh
+7
-5
7 additions, 5 deletions
tools/torbrowser/generate-bugzilla-triage-csv.sh
with
7 additions
and
5 deletions
tools/torbrowser/generate-bugzilla-triage-csv.sh
+
7
−
5
View file @
4e65b15b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Pier Angelo Vendrame
@pierov
mentioned in merge request
tor-browser!1055 (closed)
·
Aug 13, 2024
mentioned in merge request
tor-browser!1055 (closed)
mentioned in merge request tor-browser!1055
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment