commit | 539ac059b4d81fcd2aa5442a61b25415b067c0f3 | [log] [tgz] |
---|---|---|
author | Gavin Mak <gavinmak@google.com> | Tue Jun 28 23:20:44 2022 |
committer | Gavin Mak <gavinmak@google.com> | Tue Jun 28 23:22:58 2022 |
tree | 403219638f6a6cbe4b61196c8f7c2a7b27eb7872 | |
parent | b5d95f37ea1f37697b76a5d663ff195c35056bf7 [diff] |
Add support for git.corp.google.com hosts @google accounts will need to use git.corp hosts. The plugin currently errors with "Host not supported." on those hosts. Bug: 1149429 Change-Id: I2cb8f6d2520bc07790df4858d33d2314e11ea6a0
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
.