Skip to content

Commit

Permalink
[RFQ] Disable checking for number of modified files in non-cmssw repos
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Aug 27, 2024
1 parent d028694 commit 1e79a02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F
pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD
and (not warned_too_many_files)
and (not ok_too_many_files)
and cmssw_repo
):
if pr.changed_files < TOO_MANY_FILES_FAIL_THRESHOLD:
if not dryRun:
Expand All @@ -1650,7 +1651,11 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F

return

if pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD and not ok_too_many_files:
if (
pr.changed_files >= TOO_MANY_FILES_WARN_THRESHOLD
and not ok_too_many_files
and cmssw_repo
):
print("Changed file count reached and not overridden, quitting")
return

Expand Down

0 comments on commit 1e79a02

Please sign in to comment.