forked from absalon-james/gerrit-python-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-config.yaml
More file actions
74 lines (65 loc) · 2.01 KB
/
sample-config.yaml
File metadata and controls
74 lines (65 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
gerrit:
host: localhost
port: 29418
username: YourUserName
git-config-email: "someemailaddress@somedomain.com"
git-config-name: "some name"
upstream:
host: some-upstream-gerrit.some-host.com
port: 29418
username: YourUserName
timeout: 10
keepalive: 10
trigger: Verified+2
daemon:
sleep: 5
delay: 120
numthreads: 5
# Labels that act as gates before sending to upstream
upstream-labels:
- name: Code-Review
min: -2
max: 2
- name: Verified
min: -2
max: 2
- name: Upstream-Ready
min: -1
max: 1
groups:
- name: group1
owner: Administrators
description: group1's description
- name: group2
owner: Administrators
description: group2's description
users:
- username: someOtherUser
full-name: 'some other user'
http-password: some password
email: "someotheruser@somedomain.com"
ssh-key: "ssh-rsa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ssh key comment"
groups:
- "group1"
- "group2"
projects:
- name: All-Projects
config: /etc/gerrit-python-tools/acls/All-Projects.config
- name: upstream-project-1
config: /etc/gerrit-python-tools/acls/project-1.config
create: True
source: 'https://github.com/YourUserName/project-1.git'
upstream: True
- name: downstream-project-2
config: /etc/gerrit-python-tools/acls/project-2.config
create: True
source: 'https://github.com/YourUserName/project-2.git'
# This is an example of how to specify upstream gating labels
# per project.
- name: upstream-project-3-special-labels
create: True
source: 'https://github.com/YourUserName/project-3.git'
upstream-labels:
- name: Special-Label
min: -2
max: 2