I have a gerrit with admin/repos/All-Projects have been tweaked a bit - adding a Verified label for Jenkins and blocking anonymous access :)
I have all of my nice settings working (for gerrit 2.x) but now I need to spin up and brand new gerrit 3.0.1 instance ... and I do not like to edit via the GUI interface .... I prefer to patch files in order to document my change-flow.
I have seen this post about how to migrate settings from one instance to another
but it does not work with the newest gerrit.
diff --git a/project.config b/project.config
index bef07ba..204d1c0 100644
--- a/project.config
+++ b/project.config
@@ -10,10 +10,12 @@
[capability]
administrateServer = group Administrators
priority = batch group Non-Interactive Users
+ streamEvents = group Event Streaming Users
streamEvents = group Non-Interactive Users
[access "refs/*"]
+ read = deny group Anonymous Users
read = group Administrators
- read = group Anonymous Users
+ read = group Non-Interactive Users
[access "refs/for/*"]
addPatchSet = group Registered Users
[access "refs/for/refs/*"]
@@ -28,12 +30,15 @@
forgeCommitter = group Administrators
forgeCommitter = group Project Owners
label-Code-Review = -2..+2 group Administrators
+ label-Code-Review = -2..+2 group Non-Interactive Users
label-Code-Review = -2..+2 group Project Owners
label-Code-Review = -1..+1 group Registered Users
push = group Administrators
push = group Project Owners
submit = group Administrators
submit = group Project Owners
+ label-Verified = -1..+1 group Administrators
+ label-Verified = -1..+1 group Non-Interactive Users
[access "refs/meta/config"]
exclusiveGroupPermissions = read
create = group Administrators
@@ -63,3 +68,9 @@
value = 0 No score
value = +1 Looks good to me, but someone else must approve
value = +2 Looks good to me, approved
+[label "Verified"]
+ value = -1 Fails
+ value = 0 No score
+ value = +1 Verified
+ function = MaxWithBlock
+ defaultValue = 0