-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathcfg.production.toml
85 lines (65 loc) · 2.48 KB
/
cfg.production.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
max_priority = 9001
[db]
file = '/efs/main.db'
[github]
access_token = "${GITHUB_TOKEN}"
app_client_id = "${GITHUB_CLIENT_ID}"
app_client_secret = "${GITHUB_CLIENT_SECRET}"
[git]
local_git = true
ssh_key = """
${HOMU_SSH_KEY}
"""
[web]
host = '0.0.0.0'
port = 80
base_url = "https://bors.rust-lang.org"
canonical_url = "https://bors.rust-lang.org"
remove_path_prefixes = ["homu"]
#announcement = "Hello world!"
##########
# Rust #
##########
[repo.rust]
owner = "rust-lang"
name = "rust"
timeout = 21600 # 6 hours
# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []
[repo.rust.test-on-fork]
owner = "rust-lang-ci"
name = "rust"
[repo.rust.github]
secret = "${HOMU_WEBHOOK_SECRET_RUST}"
[repo.rust.checks.actions]
name = "bors build finished"
# Automatic relabeling
[repo.rust.labels.approved] # after homu received `r+`
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-crater', 'S-waiting-on-review', 'S-waiting-on-team']
add = ['S-waiting-on-bors']
[repo.rust.labels.rejected] # after homu received `r-`
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-crater', 'S-waiting-on-review', 'S-waiting-on-team']
add = ['S-waiting-on-author']
[repo.rust.labels.failed] # test failed (maybe spurious, so fall back to -on-review)
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-crater', 'S-waiting-on-review', 'S-waiting-on-team']
add = ['S-waiting-on-review']
[repo.rust.labels.timed_out] # test timed out after 4 hours (almost always spurious, let reviewer retry)
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-crater', 'S-waiting-on-review', 'S-waiting-on-team']
add = ['S-waiting-on-review']
[repo.rust.labels.try_failed] # try-build failed (almost always legit, tell author to fix the PR)
remove = ['S-waiting-on-review', 'S-waiting-on-crater']
add = ['S-waiting-on-author']
[repo.rust.labels.pushed] # user pushed a commit after `r+`/`try`
remove = ['S-waiting-on-bors', 'S-waiting-on-author']
add = ['S-waiting-on-review']
unless = ['S-blocked', 'S-waiting-on-crater', 'S-waiting-on-team']
[repo.rust.labels.conflict] # a merge conflict is detected (tell author to rebase)
remove = ['S-waiting-on-bors']
add = ['S-waiting-on-author']
unless = ['S-blocked', 'S-waiting-on-crater', 'S-waiting-on-team', 'S-waiting-on-review']
[repo.rust.labels.succeed]
add = ['merged-by-bors']
[repo.rust.labels.rollup_made]
add = ['rollup']