forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcategories.py
More file actions
40 lines (33 loc) · 1.59 KB
/
categories.py
File metadata and controls
40 lines (33 loc) · 1.59 KB
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
# A ridicously long mapping for categories. Good enough for now.
from cms_static import GH_CMSDIST_REPO as gh_cmsdist
from cms_static import GH_CMSSW_ORGANIZATION as gh_user
from cms_static import GH_CMSSW_REPO as gh_cmssw
from categories_map import CMSSW_CATEGORIES
from repo_config import CMSBUILD_USER
from releases import SPECIAL_RELEASE_MANAGERS
authors = {}
GITHUB_BLACKLIST_AUTHORS = []
CMSSW_L1 = ['LArSoft/Core']
APPROVE_BUILD_RELEASE = list(set([ 'LArSoft/Core' ] + CMSSW_L1))
REQUEST_BUILD_RELEASE = list(set(['LArSoft/Core'] + APPROVE_BUILD_RELEASE))
TRIGGER_PR_TESTS = list(set([ "LArSoft/Core"] + REQUEST_BUILD_RELEASE + [ a for a in authors if authors[a]>10 and not a in GITHUB_BLACKLIST_AUTHORS ]))
PR_HOLD_MANAGERS = [ "LArSoft/Core" ]
COMMON_CATEGORIES = [ "orp", "tests", "code-checks" ]
EXTERNAL_CATEGORIES = [ "externals" ]
EXTERNAL_REPOS = [ "cms-data", "cms-externals", gh_user]
CMSSW_REPOS = [ gh_user+"/"+gh_cmssw ]
CMSDIST_REPOS = [ gh_user+"/"+gh_cmsdist ]
CMSSW_ISSUES_TRACKERS = list(set(CMSSW_L1 + [ 'LArSoft/Core' ]))
COMPARISON_MISSING_MAP = [ "LArSoft/Core" ]
CMSSW_L2 = {
"LArSoft/Core": ["larsoft","larsoftobj"],
CMSBUILD_USER: ["tests" ],
}
USERS_TO_TRIGGER_HOOKS = set(TRIGGER_PR_TESTS + CMSSW_ISSUES_TRACKERS + list(CMSSW_L2.keys()))
CMS_REPOS = set(CMSDIST_REPOS + CMSSW_REPOS + EXTERNAL_REPOS)
from datetime import datetime
COMMENT_CONVERSION = {}
COMMENT_CONVERSION['kpedro88']={'comments_before': datetime.strptime('2018-07-13','%Y-%m-%d'), 'comments':[('+1', '+upgrade')]}
def external_to_package(repo_fullname):
org, repo = repo_fullname.split("/",1)
return repo