forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_hooks_config.py
More file actions
executable file
·27 lines (24 loc) · 886 Bytes
/
Copy pathgithub_hooks_config.py
File metadata and controls
executable file
·27 lines (24 loc) · 886 Bytes
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
GITHUB_HOOKS = {}
GITHUB_HOOKS["Jenkins_Github_Hook"] = {
"active":True,
"events": ["issues","pull_request","issue_comment"],
"config": {
"url": "https://cmssdt.cern.ch/SDT/cgi-bin/github_webhook",
"content_type":"json"
}
}
GITHUB_HOOKS["Jenkins_Github_Hook_Push"] = {
"active":True,
"events": ["push"],
"config": {
"url": "https://cmssdt.cern.ch/SDT/cgi-bin/github_webhook?push",
"content_type":"json"
}
}
#First repository name matches wins
REPO_HOOK_MAP = []
REPO_HOOK_MAP.append(["cms-sw/cmssdt-web", ["Jenkins_Github_Hook_Push"]])
REPO_HOOK_MAP.append(["cms-sw/cms-bot", ["Jenkins_Github_Hook_Push"]])
REPO_HOOK_MAP.append(["cms-sw/cmssw", ["Jenkins_Github_Hook", "Jenkins_Github_Hook_Push"]])
REPO_HOOK_MAP.append(["cms-sw/cmsdist", ["Jenkins_Github_Hook", "Jenkins_Github_Hook_Push"]])
REPO_HOOK_MAP.append([".+", ["Jenkins_Github_Hook"]])