infra/gerrit-plugins: Enable mandatory code review
Enable code-owners plugin and disallow self-Code-Review.
Change-Id: I16a97c346672938abaadfc8ae043a73cad22e84f
diff --git a/code-owners.config b/code-owners.config
new file mode 100644
index 0000000..26cd823
--- /dev/null
+++ b/code-owners.config
@@ -0,0 +1,2 @@
+[codeOwners]
+ disabled = false
diff --git a/project.config b/project.config
index 42e132c..e106a51 100644
--- a/project.config
+++ b/project.config
@@ -10,3 +10,14 @@
[label "Commit-Queue"]
function = MaxWithBlock
defaultValue = 0
+[label "Code-Review"]
+ abbreviation = R
+ value = -1 Don't submit as-is
+ value = 0 No score
+ value = +1 Looks good to me
+ defaultValue = 0
+ function = MaxWithBlock
+ copyMaxScore = true
+ copyAllScoresOnTrivialRebase = true
+ copyAllScoresIfNoCodeChange = true
+ ignoreSelfApproval = true