Skip to content

Commit

Permalink
add changes-dataformats label if PR touches classes_def.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jul 10, 2024
1 parent da01cb6 commit baa803f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions categories_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,9 @@
# 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

0 comments on commit baa803f

Please sign in to comment.