Skip to content

Commit

Permalink
only auto sign operations if there are other cats too
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 26, 2024
1 parent 2a951b6 commit 1e2341e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion process_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,8 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F
labels.append("tests-" + override_tests_failure)

# automatically approve CATS_TO_APPROVE_ON_TEST on test-approved
if signatures.get("tests") == "approved":
xcats = CATS_TO_APPROVE_ON_TEST + ["orp", "tests", "code-checks"]
if (signatures.get("tests") == "approved") and [c for c in signatures if not c in xcats]:
for cat in [c for c in CATS_TO_APPROVE_ON_TEST if (signatures.get(c) == "pending")]:
signatures[cat] = "approved"
print("Overriding/Approving singatures for %s due to tests-approved" % cat)
Expand Down

0 comments on commit 1e2341e

Please sign in to comment.