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. gr-simple-submit-rules-label-config/
  2. gr-simple-submit-rules-repo-config/
  3. src/
  4. .gitignore
  5. BUILD
  6. LICENSE
  7. plugin.html
  8. README.md
  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.