This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
forked from barosl/homu
-
Notifications
You must be signed in to change notification settings - Fork 48
/
cfg.sample.toml
181 lines (151 loc) · 5.63 KB
/
cfg.sample.toml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Priority values above max_priority will be refused.
max_priority = 9001
[github]
# Information for securely interacting with GitHub. These are found/generated
# under <https://github.com/settings/applications>.
# A GitHub personal access token.
access_token = ""
# A GitHub oauth application for this instance of homu:
app_client_id = ""
app_client_secret = ""
[git]
# Use the local Git command. Required to use some advanced features. It also
# speeds up Travis by reducing temporary commits.
#local_git = false
# SSH private key. Needed only when the local Git command is used.
#ssh_key = """
#"""
# By default, Homu extracts the name+email from the Github account it will be
# using. However, you may want to use a private email for the account, and
# associate the commits with a public email address.
#user = "Some Cool Project Bot"
#email = "coolprojectbot-devel@example.com"
[web]
# The port homu listens on.
port = 54856
# Synchronize all open PRs on startup. "Synchronize" means fetch the state of
# all open PRs.
sync_on_start = true
# Custom hooks can be added as well.
# Homu will ping the given endpoint with POSTdata of the form:
# {'body': 'comment body', 'extra_data': 'extra data', 'pull': pull req number}
# The extra data is the text specified in `@homu hookname=text`
#
# [hooks.hookname]
# trigger = "hookname" # will be triggered by @homu hookname or @homu hookname=text
# endpoint = "http://path/to/endpoint"
# access = "try" # access level required
# has_response = true # Should the response be posted back to github? Only allowed if realtime=true
# realtime = true # Should it only run in realtime mode? If false, this will be replayed each time homu is started (probably not what you want)
# An example configuration for repository (there can be many of these). NAME
# refers to your repo name.
[repo.NAME]
# Which repo are we talking about? You can get these fields from your repo URL:
# github.com/<owner>/<name>
owner = ""
name = ""
# Who can approve PRs (r+ rights)? You can put GitHub usernames here.
reviewers = []
# Alternatively, set this allow any github collaborator;
# note that you can *also* specify reviewers above.
# auth_collaborators = true
# Who has 'try' rights? (try, retry, force, clean, prioritization). It's fine to
# keep this empty.
try_users = []
# Keep the commit history linear. Requires the local Git command.
#linear = false
# Auto-squash commits. Requires the local Git command.
#autosquash = true
# If the PR already has the same success statuses that we expect on the `auto`
# branch, then push directly to branch if safe to do so. Requires the local Git
# command.
#status_based_exemption = false
# Maximum test duration allowed for testing a PR in this repository.
# Default to 10 hours.
#timeout = 36000
# Branch names. These settings are the defaults; it makes sense to leave these
# as-is.
#[repo.NAME.branch]
#
#auto = "auto"
#try = "try"
#rollup = "rollup"
[repo.NAME.github]
# Arbitrary secret. You can generate one with: openssl rand -hex 20
secret = ""
# Remove and add GitHub labels when some event happened.
# See servo/homu#141 for detail.
#
#[repo.NAME.labels.approved] # after homu received `r+`
#[repo.NAME.labels.rejected] # after homu received `r-`
#[repo.NAME.labels.conflict] # a merge conflict is detected
#[repo.NAME.labels.succeed] # test successful
#[repo.NAME.labels.failed] # test failed
#[repo.NAME.labels.exempted] # test exempted
#[repo.NAME.labels.timed_out] # test timed out (after 10 hours)
#[repo.NAME.labels.interrupted] # test interrupted (buildbot only)
#[repo.NAME.labels.try] # after homu received `try`
#[repo.NAME.labels.try_succeed] # try-build successful
#[repo.NAME.labels.try_failed] # try-build failed
#[repo.NAME.labels.pushed] # user pushed a commit after `r+`/`try`
#remove = ['list', 'of', 'labels', 'to', 'remove']
#add = ['list', 'of', 'labels', 'to', 'add']
#unless = [
# 'avoid', 'relabeling', 'if',
# 'any', 'of', 'these', 'labels', 'are', 'present',
#]
# Travis integration. Don't forget to allow Travis to test the `auto` branch!
[repo.NAME.checks.travis]
# Name of the Checks API run. Don't touch this unless you really know what
# you're doing.
name = "Travis CI - Branch"
# Appveyor integration. Don't forget to allow Appveyor to test the `auto` branch!
#[repo.NAME.status.appveyor]
#
# String label set by status updates. Don't touch this unless you really know
# what you're doing.
#context = 'continuous-integration/appveyor/branch'
# Generic GitHub Status API support. You don't need this if you're using the
# above examples for Travis/Appveyor.
#[repo.NAME.status.LABEL]
#
# String label set by status updates.
#context = ""
#
# Equivalent context to look for on the PR itself if checking whether the
# build should be exempted. If omitted, looks for the same context. This is
# only used if status_based_exemption is true.
#pr_context = ""
# Generic GitHub Checks API support. You don't need this if you're using the
# above examples for Travis/Appveyor.
#[repo.NAME.checks.LABEL]
#
# String name of the Checks run.
#name = ""
# Use buildbot for running tests
#[repo.NAME.buildbot]
#
#url = ""
#secret = ""
#
#builders = ["auto-linux", "auto-mac"]
#try_builders = ["try-linux", "try-mac"]
#
#username = ""
#password = ""
#
#
## Optional try choosers
## If adding these, be sure to add associated
## SingleBranchSchedulers for the try-CHOOSERNAME branch
## in buildbot's master.cfg
#[repo.NAME.buildbot.try_choosers]
#mac = ["auto-mac-dev", "auto-mac-rel"]
#wpt = ["linux-wpt1", "linux-wpt2"]
#
## Boolean which indicates whether the builder is included in try builds (defaults to true)
#try = false
# The database homu uses
[db]
# SQLite file
file = "main.db"