mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 07:57:19 -05:00
Update operator_engine/pr_actions/handlers/merge_pr.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -103,6 +103,12 @@ class MergePRHandler(BaseHandler):
|
||||
action.repo_owner, action.repo_name, pr["base"]["ref"]
|
||||
)
|
||||
|
||||
# Defensive checks for required_checks
|
||||
if required_checks is None:
|
||||
required_checks = []
|
||||
elif not isinstance(required_checks, list):
|
||||
logger.warning(f"Unexpected required_checks type: {type(required_checks)}")
|
||||
required_checks = []
|
||||
# If no required checks, consider it passing
|
||||
if not required_checks:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user