In gerrit, we need to setup the access control for projects, it is done via web page mostly, which is efficiency to initial it.
In internet, there is solution to manipulate the database (like gsql for h2) in scripts, but it is low level and inefficiency as well.
I wonder whether
- there is better API currently we can use to create access control in gerrit in easy way
- or any people already write the configuration in DSL format, that scripts can deal with gerrit (sql over ssh).
- or any puppet good module for this ?
My expected configuration in DSL looks like below
Group1; Read on refs/heads/* and refs/tags/*
Group2; Push to refs/for/refs/heads/* and refs/changes/*
Group3; Push merge commit to refs/for/refs/heads/* and refs/changes/*
Group4; Forge Author Identity
Group5; Label: Code review with range -2 to +2
Group6; Label: Verify with range -1 to +1
Group7; Submit
And script helps for the rest
You could try this:
Update your
project.config: