Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
4f0cf02d
Commit
4f0cf02d
authored
7 months ago
by
brizental
Committed by
morgan
7 months ago
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
da08e423
No related branches found
Branches containing commit
Tags
tor-browser-128.1.0esr-14.0-1-build4
Tags containing commit
No related merge requests found
Pipeline
#192492
passed
7 months ago
Stage: lint
Changes
1
Pipelines
1
Hide 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 @
4f0cf02d
...
...
@@ -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.
morgan
@morgan
mentioned in merge request
!1055 (closed)
·
7 months ago
mentioned in merge request
!1055 (closed)
mentioned in merge request !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
register
or
sign in
to comment