Clone this repo:
  1. b5d95f3 [chromium-behavior] Add Makefile. by Joanna Wang · 4 weeks ago main
  2. c5f513f Postpone check if buttons are installed by Josip Sokcevic · 9 weeks ago
  3. d7c1eaf Check label permissions on votes change by Josip Sokcevic · 10 weeks ago
  4. f2152f7 Update reland message to link to original commit by Josip Sokcevic · 3 months ago
  5. f965d55 Fix reload changeAction event by Aravind Vasudevan · 3 months ago

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.