Fix submission of changes using the botUser identity

Since Change-Id: I39fe14d7e the submission isn't done anymore
using the botUser, which is exactly against the main purpose of this
plugin.

Restore the proper identity of the change submitter as botUser and add
validation tests to make sure that this fundamental feature does not
break anymore by accident and unnoticed.

Bug: Issue 10173
Change-Id: I064468385548c1696898158bd8153165684d5be2
2 files changed
tree: decfa4727d75ec15756e0947f4b8370d5bea2ef9
  1. src/
  2. tools/
  3. .bazelignore
  4. .bazelrc
  5. .gitignore
  6. bazlets.bzl
  7. BUILD
  8. LICENSE
  9. README.md
  10. test.rb
  11. tests.txt
  12. WORKSPACE
README.md

Autosubmitter

Build Status

A gerrit plugin that takes care of automatically merging reviews when all approvals are present.

Also, it introduces the concept of cross-repository reviews. Cross repository reviews are reviews that share a common topic, and are all in different gerrit repositories. They will be merged at the same time, when all approvals for all reviews are present, and all reviews are mergeable.

Requires Gerrit 2.14 or later.

Configuration

[automerge]
        botEmail=admin@example.com
[commentlink "change"]
        match = "#/c/(\\d+)"
        html = "<a href=\"/#/c/$1/\">$1</a>"