Pass around ProjectConfig instead of ProjectState

There is an ongoing effort to make ProjectState immutable and we use
ProjectConfig as an object directly in other places where we update it.
Therefore, pass around ProjectConfig instead of ProjectState.

Change-Id: Ie78f3869a7ac511d639d1040dbc273c2a6253c3d
2 files changed
tree: 0f2879c4708763e14a2057a55aa694ef1b46150f
  1. .gitignore
  2. BUILD
  3. LICENSE
  4. README.md
  5. gr-simple-submit-rules-label-config/
  6. gr-simple-submit-rules-repo-config/
  7. plugin.html
  8. src/
  9. tests.html
README.md

Simple Submit Rules plugin

Gerrit plugin to provide simple submit rules and a rest API to configure them.

By simple, we mean any rule that can be described in one sentence. Or fits in a tweet.

Having a set of simple rules makes composition easier, thus allowing harder rules to be defined ... in a simple way :)

Of course, this plugin can't contain all the simple rules one can think of, and will only contain rules that seem popular or interesting to have.