[chromium-behavior] replaces Revert^$num with Reland

http://go/grev/q/I4d341ba4e1f8efdd6df2f0524be99b6d4243f461?pli=1&authuser=0
changed the generated commit message for revert CLs
- from "Revert: Revert: ..."
- to "Revert^$num"

As [1] shows, it simply matches the existing message to count the revert
number. This CL simply replaces Revert^$num with Reland.

Therefore, if the generated messages would be like below after this CL.
- Reland "..."
- Reland "Reland "...""
- Reland "Reland "Reland "..."""
- ...

[1]: https://source.corp.google.com/h/gerrit/gerrit/+/master:polygerrit-ui/app/elements/change/gr-confirm-revert-dialog/gr-confirm-revert-dialog.ts;l=212-219;drc=dc1f5f7154a5a3d54164509bf9d476c99cc002ce

Bug: b/314193975
Change-Id: Ib4d67884d89c3b26a89f48295a155985f2436391
2 files changed
tree: e9475aa85b846dd5a048fa76359b692ee940a173
  1. web/
  2. .eslintrc.json
  3. .gitignore
  4. codereview.settings
  5. LICENSE
  6. OWNERS
  7. polymer.json
  8. README.md
  9. run-with-prod-data.sh
  10. WATCHLISTS
README.md

Chrome/Chromium behavior theme for Gerrit

Setup

This plugin must be placed inside the Gerrit plugins directory:

git clone --recurse-submodules https://gerrit.googlesource.com/gerrit
cd gerrit/plugins
git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-behavior

Web Plugin Development

Run the commands below in web/.

For running TypeScript unit tests execute:

make test

For checking or fixing eslint formatter problems run:

make lint_test
make lint_fix

For testing the plugin with Gerrit FE Dev Helper the command below builds the JavaScript bundle and copies it to the plugins/chromium-behavior folder:

make build

Start polygerit-ui server:

./polygerrit-ui/run-server.sh --plugins="plugins"

and let the Dev Helper redirect from .+/plugins/chromium-behavior/static/chromium-behavior.js to http://localhost:8081/plugins/chromium-behavior.js.