| 1 | 1 |  #!/usr/bin/env bash
 | 
| 2 | 2 |  
 | 
| 3 | 3 |  # gitlab labels for review tickets
 | 
| 4 |  | -browser_label="15.0 stable"
 | 
| 5 |  | -esr_label="esr-140"
 | 
|  | 4 | +browser_label="Apps::Product::TorBrowser"
 | 
|  | 5 | +esr_label="esr-next"
 | 
|  | 6 | +priority_label="Priority::Blocker"
 | 
|  | 7 | +impact_label="Impact::Unknown"
 | 
|  | 8 | +type_label="Apps::Type::Audit"
 | 
|  | 9 | +
 | 
|  | 10 | +# milestone for the next major Tor Browser release
 | 
|  | 11 | +milestone="Tor Browser 16.0"
 | 
| 6 | 12 |  
 | 
| 7 | 13 |  # prints to stderr
 | 
| 8 | 14 |  function echoerr() { echo "$@" 1>&2; }
 | 
| ... | ... | @@ -10,18 +16,17 @@ function echoerr() { echo "$@" 1>&2; } | 
| 10 | 16 |  script_dir=$(dirname "${BASH_ARGV0:-$0}")
 | 
| 11 | 17 |  
 | 
| 12 | 18 |  # help dialog
 | 
| 13 |  | -if [ "$#" -lt 5 ]; then
 | 
| 14 |  | -    echoerr "Usage: $0 <ff-version> <begin-commit> <end-commit> <gitlab-audit-issue> <reviewers...>"
 | 
|  | 19 | +if [ "$#" -ne 4 ]; then
 | 
|  | 20 | +    echoerr "Usage: $0 <ff-version> <begin-commit> <end-commit> <gitlab-audit-issue>"
 | 
| 15 | 21 |      echoerr
 | 
| 16 | 22 |      echoerr "ff-version             rapid-release Firefox version to audit"
 | 
| 17 |  | -    echoerr "begin-commit           starting gecko-dev commit of this Firefox version"
 | 
| 18 |  | -    echoerr "end-commit             ending gecko-dev commit of this Firefox version"
 | 
|  | 23 | +    echoerr "begin-commit           starting firefox commit of this Firefox version"
 | 
|  | 24 | +    echoerr "end-commit             ending firefox commit of this Firefox version"
 | 
| 19 | 25 |      echoerr "gitlab-audit-issue     tor-browser GitLab issue number for this audit"
 | 
| 20 |  | -    echoerr "reviewers...           space-separated list of reviewers responsible for this audit"
 | 
| 21 | 26 |      echoerr ""
 | 
| 22 | 27 |      echoerr "Example:"
 | 
| 23 | 28 |      echoerr ""
 | 
| 24 |  | -    echoerr "$0 129 FIREFOX_NIGHTLY_128_END FIREFOX_NIGHTLY_129_END 43303 morgan pierov henry"
 | 
|  | 29 | +    echoerr "$0 129 FIREFOX_NIGHTLY_128_END FIREFOX_NIGHTLY_129_END 43303"
 | 
| 25 | 30 |      exit 1
 | 
| 26 | 31 |  fi
 | 
| 27 | 32 |  
 | 
| ... | ... | @@ -219,7 +224,8 @@ jq '. | sort_by([.component, .id])[] | "\(.id)|\(.component)|\(.summary)"' ${uni | 
| 219 | 224 |          # review issue title
 | 
| 220 | 225 |          new_issue_title=$(url_encode "Review Mozilla ${id}: ${summary_short}")
 | 
| 221 | 226 |          # review issue description + labeling (14.0 stable, FF128-esr, Next)
 | 
| 222 |  | -        new_issue_description=$(url_encode "### Bugzilla: ${bugzilla_url}")%0A$(url_encode "/label ~\"${browser_label}\" ~\"${esr_label}\" ~\"Bugzilla Review\" ~Next")%0A$(url_encode "/relate tpo/applications/tor-browser#${audit_issue}")%0A%0A$(url_encode "<!-- briefly describe why this issue needs further review -->")%0A
 | 
|  | 227 | +        new_issue_description=$(url_encode "### Bugzilla: ${bugzilla_url}")%0A$(url_encode "/label ~\"${browser_label}\" ~\"${esr_label}\" ~\"${priority_label}\" ~\"${impact_label}\" ~\"${type_label}\"")%0A$(url_encode "/milestone %\"{milestone}\"")%0A$(url_encode "/relate tpo/applications/tor-browser#${audit_issue}")%0A%0A$(url_encode "<!-- briefly describe why this issue needs further review -->")%0A
 | 
|  | 228 | +
 | 
| 223 | 229 |          # url which create's new issue with title and description pre-populated
 | 
| 224 | 230 |          new_issue_url="https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/new?issue[title]=${new_issue_title}&issue[description]=${new_issue_description}"
 | 
| 225 | 231 |  
 | 
| ... | ... | @@ -231,12 +237,6 @@ jq '. | sort_by([.component, .id])[] | "\(.id)|\(.component)|\(.summary)"' ${uni | 
| 231 | 237 |      fi
 | 
| 232 | 238 |  done
 | 
| 233 | 239 |  
 | 
| 234 |  | -echo
 | 
| 235 |  | -echo "\"Triaged by:\""
 | 
| 236 |  | -for reviewer in $reviewers; do
 | 
| 237 |  | -    reviewer=$(csv_escape "${reviewer}")
 | 
| 238 |  | -    echo "\"FALSE\",\"${reviewer}\""
 | 
| 239 |  | -done
 | 
| 240 | 240 |  echo
 | 
| 241 | 241 |  
 | 
| 242 | 242 |  bugzilla_query="=HYPERLINK(\"${bugzilla_query}\", \"Bugzilla query\")"
 |