Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add changes-dataformats label if PR touches classes_def.xml #2290

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions categories_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,10 @@
# Format: label = [regexp1, regexp2]
# where regexpX can be part of cmssw package e.g SiStrip will match all cmssw packages with SiStrip in them
# "jetmet": [ "SubSystem1/", "SubSystem2/Package"]
import re

CMSSW_LABELS = {
"changes-dataformats": [re.compile("^.+/src/classes_def(.+|).xml$")],
"trk": [
"Alignment/APEEstimation",
"Alignment/HIPAlignmentAlgorithm",
Expand Down
2 changes: 1 addition & 1 deletion process_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def update_CMSSW_LABELS(repo_config):
check_dpg_pog = False
dpg_pog = {} if not check_dpg_pog else get_dpg_pog()
for l in CMSSW_LABELS.keys():
if check_dpg_pog and (not l in dpg_pog):
if check_dpg_pog and (not l in dpg_pog) and (not l in TYPE_COMMANDS):
del CMSSW_LABELS[l]
else:
CMSSW_LABELS[l] = [
Expand Down
Loading