-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfreebot.conf
113 lines (113 loc) · 4.06 KB
/
freebot.conf
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"bind_addr": ":9002",
"log_level": "info",
"github_access_token": "ak",
"github_app_private_key": "./bot.private-key.pem",
"github_app_id": 1,
"repo_conf_dir": "./confs",
"repo_conf_dir_update_interval_s": 5,
"repo_confs": {
"owner/repo": {
"alias": {
"cmds": {
"s": "status"
},
"labels": {
"wr": "wait-review",
"rc": "request-changes",
"mr": "merge-ready"
},
"users": {}
},
"roles": {
"owner": ["user1"],
"qa": ["user2"]
},
"plugins": {
"assign": {
"disable": false
},
"status": {
"extra": {
"init": {
"status": "wip",
"preconditions": []
},
"approved": {
"status": "approved",
"preconditions": [{
"required_roles": ["owner"],
"required_labels": ["status/wip"]
},{
"required_roles": ["owner"],
"required_labels": ["status/wait-review"]
},{
"required_roles": ["owner"],
"required_labels": ["status/request-changes"]
}]
},
"synchronize": {
"status": "wip",
"preconditions": [{
"required_labels": ["status/approved"]
},{
"required_labels": ["status/testing"]
},{
"required_labels": ["status/merge-ready"]
}]
},
"label_precondition": {
"wip": [],
"hold": [
{
"is_author": true
},
{
"required_roles": ["owner"]
}
],
"wait-review": [],
"request-changes": [],
"approved": [{
"required_roles": ["owner"]
}],
"testing": [{
"required_labels": ["status/approved"]
}],
"merge-ready": [
{
"required_roles": ["owner"]
},
{
"required_roles": ["qa"]
"required_labels": ["status/testing"]
}
]
}
}
},
"merge": {
"preconditions": [
{
"is_author": true,
"required_labels": ["status/approved"]
},
{
"required_roles": ["owner"]
}
]
},
"lifecycle": {
"preconditions": [
{
"is_author": true
},
{
"required_roles": ["owner"]
}
]
}
}
}
}
}