commit | d10987d4290f25e4cd3d39570a1ba92153ab7290 | [log] [tgz] |
---|---|---|
author | Scott Lee <ddoman@chromium.org> | Mon Jan 29 18:23:52 2024 |
committer | Scott Lee <ddoman@chromium.org> | Mon Jan 29 18:23:52 2024 |
tree | e9475aa85b846dd5a048fa76359b692ee940a173 | |
parent | e19d53d48763dc4ed6ccaab4b62cf40118280427 [diff] |
[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
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
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
.