Skip to content

Commit 25db3ce

Browse files
committed
Update example_cfbot_config.py for recent changes.
1 parent 9d055c1 commit 25db3ce

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

example_cfbot_config.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
GITHUB_FULL_REPO = f"{GITHUB_USER}/{GITHUB_REPO}"
1212

13-
# which CI providers are enabled
14-
CI_MODULES = ("cirrus",)
15-
1613
# Some settings are different for our production server
1714
PRODUCTION = False
1815

@@ -21,6 +18,23 @@
2118
COMMITFEST_SHARED_SECRET = "INSECURE"
2219
COMMITFEST_POST_URL = "http://localhost:8007/cfbot_notify/"
2320

21+
# If we receive "push" notifications matching these settings, we'll
22+
# automatically mirror them to branches of the same name in our output repo (if
23+
# configured above).
24+
GITHUB_MIRROR_USER = "postgres"
25+
GITHUB_MIRROR_REPO = "postgres"
26+
GITHUB_MIRROR_FULL_REPO = f"{GITHUB_MIRROR_USER}/{GITHUB_MIRROR_REPO}"
27+
GITHUB_MIRROR_BRANCH_PATTERN = r"^(master|REL_[0-9]+_STABLE)$"
28+
29+
GITHUB_TOKENS = {
30+
# "postgres/postgres" : "token_goes_here",
31+
# ...
32+
}
33+
34+
# Paths that we don't allow patches to modify, to prevent privilege escalation
35+
# of Github Actions.
36+
PUSH_BLOCKED_PATTERN = r"^\.github/workflows/.*$"
37+
2438
# http settings (be polite by identifying ourselves and limited rate)
2539
# SLOW_FETCH_SLEEP = 1.0
2640
# SLOW_FETCH_SLEEP = 0.1

0 commit comments

Comments
 (0)