Add committer warner

When uploading to gerrit, a CL's author may be different from its committer. In theory, a bad actor could create and submit a CL under an identity similar to the author.

This change adds a warning under an unsubmitted change's metadata if the author is not the committer.

Bug: 1152211
Change-Id: I9e8fff3eced0ced7eac1324a1671b2f7c9ed3003
3 files changed
tree: 3543ba3aac93bfacf4ea29eb2944443bdb7539f5
  1. src/
  2. test/
  3. .eslintrc.json
  4. .gitignore
  5. BUILD
  6. codereview.settings
  7. LICENSE
  8. package-lock.json
  9. package.json
  10. polymer.json
  11. README.md
  12. run-with-prod-data.sh
  13. WATCHLISTS
README.md

Chrome/Chromium behavior theme for Gerrit

To run unit tests

$ npm wct-test

To test with Gerrit FE Dev Helper

Make sure the plugin is installed in plugins/ of Gerrit repository.

$ cd ../.. # Gerrit root directory
$ bazel build plugins/chromium-behavior:chromium-behavior
$ cp -f bazel-bin/plugins/chromium-behavior/chromium-behavior-bundle.js plugins/
$ cd plugins/chromium-behavior
$ run-with-prod-data.sh